h263dec: Restore w/h values to a consistent state if a change is rejected.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		
							parent
							
								
									3c6397404b
								
							
						
					
					
						commit
						4a619fcae9
					
				@ -587,6 +587,8 @@ retry:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        if (HAVE_THREADS && (s->avctx->active_thread_type&FF_THREAD_FRAME)) {
 | 
					        if (HAVE_THREADS && (s->avctx->active_thread_type&FF_THREAD_FRAME)) {
 | 
				
			||||||
            av_log_missing_feature(s->avctx, "Width/height/bit depth/chroma idc changing with threads is", 0);
 | 
					            av_log_missing_feature(s->avctx, "Width/height/bit depth/chroma idc changing with threads is", 0);
 | 
				
			||||||
 | 
					            s->width = avctx->coded_width;
 | 
				
			||||||
 | 
					            s->height= avctx->coded_height;
 | 
				
			||||||
            return -1;   // width / height changed during parallelized decoding
 | 
					            return -1;   // width / height changed during parallelized decoding
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user