Commit 27c0cefe authored by romansh's avatar romansh

* fixing DV-in-AVI type1 packet production bug


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5262 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5e819b7b
...@@ -834,8 +834,11 @@ int dv_produce_packet(DVDemuxContext *c, AVPacket *pkt, ...@@ -834,8 +834,11 @@ int dv_produce_packet(DVDemuxContext *c, AVPacket *pkt,
{ {
int size, i; int size, i;
if (buf_size < 4 || buf_size < c->sys->frame_size) if (buf_size < DV_PROFILE_BYTES ||
return -1; /* Broken frame, or not enough data */ !(c->sys = dv_frame_profile(buf)) ||
buf_size < c->sys->frame_size) {
return -1; /* Broken frame, or not enough data */
}
/* Queueing audio packet */ /* Queueing audio packet */
/* FIXME: in case of no audio/bad audio we have to do something */ /* FIXME: in case of no audio/bad audio we have to do something */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment