GNOME Bugzilla – Bug 336904
Problem playing some AVI file when splitting large chunks of audio data
Last modified: 2006-04-21 18:03:44 UTC
Please describe the problem: In function gst_avi_demux_massage_index, if a very large chunk of data is found, it is split in smaller chunks, and each chunk is indexed separately. When splitting audio chunks, the block alignment is not taken in consideration, so the smaller chunks could be of size which is not a multiple of the block alignment. This causes problems later, when passing the buffer to the next element, negotiation could fail with a wrong size error. Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Created attachment 62587 [details] [review] Patch to fix chunk size
Patch by: Fabrizio Gennari <fabrizio dot ge at tiscali dot it> * gst/avi/gstavidemux.c: (gst_avi_demux_parse_stream), (gst_avi_demux_parse_index), (gst_avi_demux_massage_index): When splitting audio chunks, the block alignment is not taken in consideration, so the smaller chunks could be of size which is not a multiple of the block alignment. Fixes #336904