mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
lavf/dv: return a meaningful error code from avpriv_dv_produce_packet()
This commit is contained in:
parent
090f12b157
commit
f0283f278a
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue