nutenc: verbosely report unsupported negative pts
Additionally use the correct error number.
This commit is contained in:
		
							parent
							
								
									f174fbac3c
								
							
						
					
					
						commit
						07585ffa62
					
				| @ -767,8 +767,12 @@ static int nut_write_packet(AVFormatContext *s, AVPacket *pkt) | |||||||
|     int store_sp  = 0; |     int store_sp  = 0; | ||||||
|     int ret; |     int ret; | ||||||
| 
 | 
 | ||||||
|     if (pkt->pts < 0) |     if (pkt->pts < 0) { | ||||||
|         return -1; |         av_log(s, AV_LOG_ERROR, | ||||||
|  |                "Negative pts not supported stream %d, pts %"PRId64"\n", | ||||||
|  |                pkt->stream_index, pkt->pts); | ||||||
|  |         return AVERROR_INVALIDDATA; | ||||||
|  |     } | ||||||
| 
 | 
 | ||||||
|     if (1LL << (20 + 3 * nut->header_count) <= avio_tell(bc)) |     if (1LL << (20 + 3 * nut->header_count) <= avio_tell(bc)) | ||||||
|         write_headers(s, bc); |         write_headers(s, bc); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user