avconv: check return value
CC: libav-stable@libav.org Bug-Id: CID 1224275
This commit is contained in:
		
							parent
							
								
									c802a2e718
								
							
						
					
					
						commit
						c92965dbfb
					
				
							
								
								
									
										4
									
								
								avconv.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								avconv.c
									
									
									
									
									
								
							@ -1963,7 +1963,9 @@ static int transcode_init(void)
 | 
				
			|||||||
                av_log(NULL, AV_LOG_WARNING, "The bitrate parameter is set too low."
 | 
					                av_log(NULL, AV_LOG_WARNING, "The bitrate parameter is set too low."
 | 
				
			||||||
                                             "It takes bits/s as argument, not kbits/s\n");
 | 
					                                             "It takes bits/s as argument, not kbits/s\n");
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            av_opt_set_dict(ost->enc_ctx, &ost->encoder_opts);
 | 
					            ret = av_opt_set_dict(ost->enc_ctx, &ost->encoder_opts);
 | 
				
			||||||
 | 
					            if (ret < 0)
 | 
				
			||||||
 | 
					                return ret;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        ret = avcodec_copy_context(ost->st->codec, ost->enc_ctx);
 | 
					        ret = avcodec_copy_context(ost->st->codec, ost->enc_ctx);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user