cdgraphics: do not return 0 from the decode function
0 means no data consumed, so it can trigger an infinite loop in the
caller.
CC:libav-stable@libav.org
(cherry picked from commit c7d9b473e2)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Conflicts:
libavcodec/cdgraphics.c
This commit is contained in:
parent
3aebdffb01
commit
cf6b2a0ad2
1 changed files with 1 additions and 2 deletions
|
|
@ -348,11 +348,10 @@ static int cdg_decode_frame(AVCodecContext *avctx,
|
|||
*data_size = sizeof(AVFrame);
|
||||
} else {
|
||||
*data_size = 0;
|
||||
buf_size = 0;
|
||||
}
|
||||
|
||||
*(AVFrame *) data = cc->frame;
|
||||
return buf_size;
|
||||
return avpkt->size;
|
||||
}
|
||||
|
||||
static av_cold int cdg_decode_end(AVCodecContext *avctx)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue