fftools/ffmpeg_demux: add logging for -dump_attachment
Makes it more clear what was written where.
This commit is contained in:
		
							parent
							
								
									63e4e8e4f4
								
							
						
					
					
						commit
						2d59873fc1
					
				@ -1288,6 +1288,10 @@ static int dump_attachment(InputStream *ist, const char *filename)
 | 
				
			|||||||
    avio_write(out, st->codecpar->extradata, st->codecpar->extradata_size);
 | 
					    avio_write(out, st->codecpar->extradata, st->codecpar->extradata_size);
 | 
				
			||||||
    ret = avio_close(out);
 | 
					    ret = avio_close(out);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (ret >= 0)
 | 
				
			||||||
 | 
					        av_log(ist, AV_LOG_INFO, "Wrote attachment (%d bytes) to '%s'\n",
 | 
				
			||||||
 | 
					               st->codecpar->extradata_size, filename);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return ret;
 | 
					    return ret;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user