vc1parse: Fix the SequenceLayer handling for advanced profile.
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Wed, 7 Aug 2013 12:01:33 +0000 (15:01 +0300)
committerTim-Philipp Müller <tim@centricular.net>
Mon, 12 Aug 2013 15:12:52 +0000 (16:12 +0100)
The Sequence Header Data Structure STRUCT_C for Advanced Profile
has only a one valid field which is the profile indicator. Don't
use the reserved fields for fps update like Simple/Main profile.

https://bugzilla.gnome.org/show_bug.cgi?id=705667

gst/videoparsers/gstvc1parse.c

index 3e974f2..9bb37ab 100644 (file)
@@ -1428,7 +1428,7 @@ gst_vc1_parse_handle_seq_layer (GstVC1Parse * vc1parse,
     vc1parse->level = level;
   }
 
-  if (!vc1parse->fps_from_caps) {
+  if (!vc1parse->fps_from_caps && profile != GST_VC1_PROFILE_ADVANCED) {
     gint fps;
     fps = vc1parse->seq_layer.struct_c.framerate;
     if (fps == 0 || fps == -1)