avcodec/lscr: stop returning error if size of packet is 2 bytes

This commit is contained in:
Paul B Mahol 2020-09-16 15:20:21 +02:00
parent c79f07cc0c
commit 161495a3d0
1 changed files with 2 additions and 0 deletions

View File

@ -1597,6 +1597,8 @@ static int decode_frame_lscr(AVCodecContext *avctx,
if (avpkt->size < 2)
return AVERROR_INVALIDDATA;
if (avpkt->size == 2)
return 0;
bytestream2_init(gb, avpkt->data, avpkt->size);