Mercurial > libavcodec.hg
diff h264.c @ 11298:b79f22337b6f libavcodec
Move init of right side of ref_cache from fill_caches() to init_the_darn_decoder().
| author | michael |
|---|---|
| date | Fri, 26 Feb 2010 03:27:52 +0000 |
| parents | 411ab09ada91 |
| children | 5ceb00df7ec3 |
line wrap: on
line diff
--- a/h264.c Fri Feb 26 02:54:03 2010 +0000 +++ b/h264.c Fri Feb 26 03:27:52 2010 +0000 @@ -872,6 +872,10 @@ avctx->ticks_per_frame = 2; } + h->ref_cache[0][scan8[5 ]+1] = h->ref_cache[0][scan8[7 ]+1] = h->ref_cache[0][scan8[13]+1] = + h->ref_cache[1][scan8[5 ]+1] = h->ref_cache[1][scan8[7 ]+1] = h->ref_cache[1][scan8[13]+1] = PART_NOT_AVAILABLE; + + if(avctx->extradata_size > 0 && avctx->extradata && *(char *)avctx->extradata == 1){ int i, cnt, nalsize; unsigned char *p = avctx->extradata;
