GNOME Bugzilla – Bug 668380
[h264parse] [codecparsers] gst_h264_parse_hrd_parameters not reading cbr_flag
Last modified: 2012-02-18 19:59:33 UTC
Created attachment 205736 [details] [review] Patch that read cbr_flag in gst_h264_parse_hrd_parameters gst_h264_parse_hrd_parameters in gst-libs/gst/codecparsers/gsth264parser.c is not reading cbr_flag. This breaks parsing of the rest of vui_parameters, and gst_h264_parse_vui_parameters returns failure. This propagates so the parsing of the entire SPS is deemed as a failure. Basically this renders the parsed stream useless. The fix is simple, just read one more bit in gst_h264_parse_hrd_parameters. The flag is already declared in GstH264HRDParams. legacyh264parse read this flag but it seems to be overlooked in the new parser.
Created attachment 205737 [details] First few NALs from a stream that is incorrectly parsed
commit 657226d9f0ea27f3923c6af89a24911eefc28f88 Author: Jonas Larsson <jonas@hallerud.se> Date: Mon Jan 23 18:51:34 2012 +0100 codecparsers: read the cbr_flag in h264_parse_hrd_parameters