aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/dv.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-08-23 13:49:36 +0200
committerAnton Khirnov <anton@khirnov.net>2022-09-05 08:11:27 +0200
commitf0283f278a6a5f587d6cd66128b29d49ef42fb36 (patch)
tree6286c092b1c912b0f52bd4f3a5f4f810add28ba9 /libavformat/dv.c
parent090f12b15750bc3eb81b2d892cd980e9285cfe48 (diff)
downloadffmpeg-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.c2
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 */