avcodec/libtheoraenc: Do not use invalid error code
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
		
							parent
							
								
									9b738de611
								
							
						
					
					
						commit
						61c37bc61d
					
				@ -119,7 +119,7 @@ static int get_stats(AVCodecContext *avctx, int eos)
 | 
				
			|||||||
    return 0;
 | 
					    return 0;
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
    av_log(avctx, AV_LOG_ERROR, "libtheora too old to support 2pass\n");
 | 
					    av_log(avctx, AV_LOG_ERROR, "libtheora too old to support 2pass\n");
 | 
				
			||||||
    return AVERROR(ENOSUP);
 | 
					    return AVERROR(ENOTSUP);
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -158,7 +158,7 @@ static int submit_stats(AVCodecContext *avctx)
 | 
				
			|||||||
    return 0;
 | 
					    return 0;
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
    av_log(avctx, AV_LOG_ERROR, "libtheora too old to support 2pass\n");
 | 
					    av_log(avctx, AV_LOG_ERROR, "libtheora too old to support 2pass\n");
 | 
				
			||||||
    return AVERROR(ENOSUP);
 | 
					    return AVERROR(ENOTSUP);
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user