Set gray (128) U/V planes for chroma-less samples. Fixes two fate samples
when played with -flags emu_edge. (cherry picked from commit 8bcfe7f7fd71e5d548c2cd96d33295ff06a5f6c8)
This commit is contained in:
		
							parent
							
								
									772225c041
								
							
						
					
					
						commit
						7f8c11b005
					
				@ -1373,6 +1373,8 @@ decode_intra_mb:
 | 
				
			|||||||
            pred_mode= ff_h264_check_intra_pred_mode( h, pred_mode );
 | 
					            pred_mode= ff_h264_check_intra_pred_mode( h, pred_mode );
 | 
				
			||||||
            if( pred_mode < 0 ) return -1;
 | 
					            if( pred_mode < 0 ) return -1;
 | 
				
			||||||
            h->chroma_pred_mode= pred_mode;
 | 
					            h->chroma_pred_mode= pred_mode;
 | 
				
			||||||
 | 
					        } else {
 | 
				
			||||||
 | 
					            h->chroma_pred_mode= DC_128_PRED8x8;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    } else if( partition_count == 4 ) {
 | 
					    } else if( partition_count == 4 ) {
 | 
				
			||||||
        int i, j, sub_partition_count[4], list, ref[2][4];
 | 
					        int i, j, sub_partition_count[4], list, ref[2][4];
 | 
				
			||||||
 | 
				
			|||||||
@ -665,6 +665,8 @@ decode_intra_mb:
 | 
				
			|||||||
            if(pred_mode < 0)
 | 
					            if(pred_mode < 0)
 | 
				
			||||||
                return -1;
 | 
					                return -1;
 | 
				
			||||||
            h->chroma_pred_mode= pred_mode;
 | 
					            h->chroma_pred_mode= pred_mode;
 | 
				
			||||||
 | 
					        } else {
 | 
				
			||||||
 | 
					            h->chroma_pred_mode = DC_128_PRED8x8;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }else if(partition_count==4){
 | 
					    }else if(partition_count==4){
 | 
				
			||||||
        int i, j, sub_partition_count[4], list, ref[2][4];
 | 
					        int i, j, sub_partition_count[4], list, ref[2][4];
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user