comparison h264_refs.c @ 11558:44c5c540722c libavcodec

Fix implicit weight for b frames in mbaff.
author michael
date Tue, 30 Mar 2010 21:05:11 +0000
parents 33f8308382f5
children 7dd2a45249a9
comparison
equal deleted inserted replaced
11557:53822d92c3f7 11558:44c5c540722c
320 for(j=0; j<2; j++){ 320 for(j=0; j<2; j++){
321 h->chroma_weight[16+2*i][list][j][0] = h->chroma_weight[16+2*i+1][list][j][0] = h->chroma_weight[i][list][j][0]; 321 h->chroma_weight[16+2*i][list][j][0] = h->chroma_weight[16+2*i+1][list][j][0] = h->chroma_weight[i][list][j][0];
322 h->chroma_weight[16+2*i][list][j][1] = h->chroma_weight[16+2*i+1][list][j][1] = h->chroma_weight[i][list][j][1]; 322 h->chroma_weight[16+2*i][list][j][1] = h->chroma_weight[16+2*i+1][list][j][1] = h->chroma_weight[i][list][j][1];
323 } 323 }
324 } 324 }
325 }
326 for(j=0; j<h->ref_count[1]; j++){
327 for(i=0; i<h->ref_count[0]; i++)
328 h->implicit_weight[j][16+2*i] = h->implicit_weight[j][16+2*i+1] = h->implicit_weight[j][i];
329 memcpy(h->implicit_weight[16+2*j], h->implicit_weight[j], sizeof(*h->implicit_weight));
330 memcpy(h->implicit_weight[16+2*j+1], h->implicit_weight[j], sizeof(*h->implicit_weight));
331 } 325 }
332 } 326 }
333 327
334 /** 328 /**
335 * Mark a picture as no longer needed for reference. The refmask 329 * Mark a picture as no longer needed for reference. The refmask