comparison h264.c @ 8140:54d7d6a63f3c libavcodec

Fix H.264 decoding. (Problem analyzed by Uoti Urpala)
author cehoyos
date Thu, 13 Nov 2008 11:33:26 +0000
parents a9734fe0811e
children 5f399949a6a6
comparison
equal deleted inserted replaced
8139:f6f70b671287 8140:54d7d6a63f3c
7336 AVCodecContext * const avctx= s->avctx; 7336 AVCodecContext * const avctx= s->avctx;
7337 H264Context *hx; 7337 H264Context *hx;
7338 int i; 7338 int i;
7339 7339
7340 if(context_count == 1) { 7340 if(context_count == 1) {
7341 decode_slice(avctx, h); 7341 decode_slice(avctx, &h);
7342 } else { 7342 } else {
7343 for(i = 1; i < context_count; i++) { 7343 for(i = 1; i < context_count; i++) {
7344 hx = h->thread_context[i]; 7344 hx = h->thread_context[i];
7345 hx->s.error_recognition = avctx->error_recognition; 7345 hx->s.error_recognition = avctx->error_recognition;
7346 hx->s.error_count = 0; 7346 hx->s.error_count = 0;