avcodec/sipr: use AVERROR return code instead of -1
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
		
							parent
							
								
									a99226133e
								
							
						
					
					
						commit
						f226c25a37
					
				@ -537,7 +537,7 @@ static int sipr_decode_frame(AVCodecContext *avctx, void *data,
 | 
				
			|||||||
        av_log(avctx, AV_LOG_ERROR,
 | 
					        av_log(avctx, AV_LOG_ERROR,
 | 
				
			||||||
               "Error processing packet: packet size (%d) too small\n",
 | 
					               "Error processing packet: packet size (%d) too small\n",
 | 
				
			||||||
               avpkt->size);
 | 
					               avpkt->size);
 | 
				
			||||||
        return -1;
 | 
					        return AVERROR_INVALIDDATA;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* get output buffer */
 | 
					    /* get output buffer */
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user