Merge remote-tracking branch 'qatar/master'
* qatar/master: h264: correct implicit weight table computation for long ref pics h264: correct the check for invalid long term frame index in MMCO decode Conflicts: libavcodec/h264.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
ada49f936e
@ -2204,8 +2204,8 @@ static void implicit_weight_table(H264Context *h, int field){
|
|||||||
for(ref0=ref_start; ref0 < ref_count0; ref0++){
|
for(ref0=ref_start; ref0 < ref_count0; ref0++){
|
||||||
int poc0 = h->ref_list[0][ref0].poc;
|
int poc0 = h->ref_list[0][ref0].poc;
|
||||||
for(ref1=ref_start; ref1 < ref_count1; ref1++){
|
for(ref1=ref_start; ref1 < ref_count1; ref1++){
|
||||||
int w= 32;
|
int w = 32;
|
||||||
if (!h->ref_list[0][ref0].long_ref && !h->ref_list[1][ref1].long_ref){
|
if (!h->ref_list[0][ref0].long_ref && !h->ref_list[1][ref1].long_ref) {
|
||||||
int poc1 = h->ref_list[1][ref1].poc;
|
int poc1 = h->ref_list[1][ref1].poc;
|
||||||
int td = av_clip(poc1 - poc0, -128, 127);
|
int td = av_clip(poc1 - poc0, -128, 127);
|
||||||
if(td){
|
if(td){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user