You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavf/dv: return a meaningful error code from avpriv_dv_produce_packet()
This commit is contained in:
@@ -404,7 +404,7 @@ int avpriv_dv_produce_packet(DVDemuxContext *c, AVPacket *pkt,
|
|||||||
if (buf_size < DV_PROFILE_BYTES ||
|
if (buf_size < DV_PROFILE_BYTES ||
|
||||||
!(c->sys = av_dv_frame_profile(c->sys, buf, buf_size)) ||
|
!(c->sys = av_dv_frame_profile(c->sys, buf, buf_size)) ||
|
||||||
buf_size < c->sys->frame_size) {
|
buf_size < c->sys->frame_size) {
|
||||||
return -1; /* Broken frame, or not enough data */
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Queueing audio packet */
|
/* Queueing audio packet */
|
||||||
|
Reference in New Issue
Block a user