Browse Source

ffv1dec: fix error concealment for gop>1

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.0
Michael Niedermayer 13 years ago
parent
commit
b45a313e97
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/ffv1.c

+ 2
- 1
libavcodec/ffv1.c View File

@@ -1907,6 +1907,8 @@ static int read_header(FFV1Context *f){
fs->ac= f->ac; fs->ac= f->ac;
fs->packed_at_lsb= f->packed_at_lsb; fs->packed_at_lsb= f->packed_at_lsb;


fs->slice_damaged = 0;

if(f->version == 2){ if(f->version == 2){
fs->slice_x = get_symbol(c, state, 0) *f->width ; fs->slice_x = get_symbol(c, state, 0) *f->width ;
fs->slice_y = get_symbol(c, state, 0) *f->height; fs->slice_y = get_symbol(c, state, 0) *f->height;
@@ -2026,7 +2028,6 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
} }
buf_p -= v; buf_p -= v;


fs->slice_damaged = 0;
if(f->ec){ if(f->ec){
unsigned crc = av_crc(av_crc_get_table(AV_CRC_32_IEEE), 0, buf_p, v); unsigned crc = av_crc(av_crc_get_table(AV_CRC_32_IEEE), 0, buf_p, v);
if(crc){ if(crc){


Loading…
Cancel
Save