Commit 8456089f authored by Michael Niedermayer's avatar Michael Niedermayer

ffv1: clear slice state in decode_slice()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent c7a435aa
......@@ -1508,6 +1508,9 @@ static int decode_slice(AVCodecContext *c, void *arg){
const int ps= (c->bits_per_raw_sample>8)+1;
AVFrame * const p= &f->picture;
if(f->picture.key_frame)
clear_slice_state(f, fs);
av_assert1(width && height);
if(f->colorspace==0){
const int chroma_width = -((-width )>>f->chroma_h_shift);
......@@ -1839,8 +1842,6 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
return -1;
if(init_slices_state(f) < 0)
return -1;
clear_state(f);
}else{
p->key_frame= 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment