GNOME Bugzilla – Bug 343500
[riff] gst_riff_parse_strf_vids() can't parse extra data.
Last modified: 2006-07-11 22:28:01 UTC
I'm using pitfdll plugin for playing wmv3 video. But some avi files contain wmv3 video can't play. so I trace some functions, and I found there is something invalid in riff parser. When mplayer's aviparser get extra data from strf, starting offset is _BITMAPHEADER size_ not _strf size_. but in gstriff, offset is _strf size_, so extra data is always empty. After apply below patch, totem player can play avi files that couldn't play before.
Created attachment 66525 [details] [review] quick patch for get extra data properly
You can download media file from http://ftp.mizi.com/~ganadist/sample.avi File size is about 10Mb, and file contains wmv3 video and mp3 audio.
Created attachment 66594 [details] [review] patch for get extra data properly use sizeof(gst_riff_strf_vids) instead of fixed value
Thanks a lot, does not cause regressions with paletted files. Commited: Patch by: Young-Ho Cha <ganadist at chollian dot net> * gst-libs/gst/riff/riff-read.c: (gst_riff_parse_strf_vids): Parse extra data better, apparently it's right behind the normal strf header size. Fixes #343500.