diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-08-23 13:49:36 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-09-05 08:11:27 +0200 |
commit | f0283f278a6a5f587d6cd66128b29d49ef42fb36 (patch) | |
tree | 6286c092b1c912b0f52bd4f3a5f4f810add28ba9 /libavformat/dv.c | |
parent | 090f12b15750bc3eb81b2d892cd980e9285cfe48 (diff) | |
download | ffmpeg-f0283f278a6a5f587d6cd66128b29d49ef42fb36.tar.gz |
lavf/dv: return a meaningful error code from avpriv_dv_produce_packet()
Diffstat (limited to 'libavformat/dv.c')
-rw-r--r-- | libavformat/dv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/dv.c b/libavformat/dv.c index f88fe62349..c888111789 100644 --- a/libavformat/dv.c +++ b/libavformat/dv.c @@ -404,7 +404,7 @@ int avpriv_dv_produce_packet(DVDemuxContext *c, AVPacket *pkt, if (buf_size < DV_PROFILE_BYTES || !(c->sys = av_dv_frame_profile(c->sys, buf, buf_size)) || buf_size < c->sys->frame_size) { - return -1; /* Broken frame, or not enough data */ + return AVERROR_INVALIDDATA; } /* Queueing audio packet */ |