mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
* fixing DV-in-AVI type1 packet production bug
Originally committed as revision 5262 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
d2fbcb3bc8
commit
c4e7baa85c
@ -834,8 +834,11 @@ int dv_produce_packet(DVDemuxContext *c, AVPacket *pkt,
|
||||
{
|
||||
int size, i;
|
||||
|
||||
if (buf_size < 4 || buf_size < c->sys->frame_size)
|
||||
return -1; /* Broken frame, or not enough data */
|
||||
if (buf_size < DV_PROFILE_BYTES ||
|
||||
!(c->sys = dv_frame_profile(buf)) ||
|
||||
buf_size < c->sys->frame_size) {
|
||||
return -1; /* Broken frame, or not enough data */
|
||||
}
|
||||
|
||||
/* Queueing audio packet */
|
||||
/* FIXME: in case of no audio/bad audio we have to do something */
|
||||
|
Loading…
Reference in New Issue
Block a user