forked from FFmpeg/FFmpeg
bintext: reset x and y pos after each frame decode.
This makes successive frames decode possible. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
4052bf69ac
commit
3775af0fec
1 changed files with 1 additions and 0 deletions
|
@ -131,6 +131,7 @@ static int decode_frame(AVCodecContext *avctx,
|
||||||
int buf_size = avpkt->size;
|
int buf_size = avpkt->size;
|
||||||
const uint8_t *buf_end = buf+buf_size;
|
const uint8_t *buf_end = buf+buf_size;
|
||||||
|
|
||||||
|
s->x = s->y = 0;
|
||||||
s->frame.buffer_hints = FF_BUFFER_HINTS_VALID |
|
s->frame.buffer_hints = FF_BUFFER_HINTS_VALID |
|
||||||
FF_BUFFER_HINTS_PRESERVE |
|
FF_BUFFER_HINTS_PRESERVE |
|
||||||
FF_BUFFER_HINTS_REUSABLE;
|
FF_BUFFER_HINTS_REUSABLE;
|
||||||
|
|
Loading…
Add table
Reference in a new issue