[FFmpeg-cvslog] r11587 - trunk/ffmpeg.c
benoit
subversion
Mon Jan 21 14:36:20 CET 2008
Author: benoit
Date: Mon Jan 21 14:36:20 2008
New Revision: 11587
Log:
Inform user when bitstream filter fails.
Modified:
trunk/ffmpeg.c
Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c (original)
+++ trunk/ffmpeg.c Mon Jan 21 14:36:20 2008
@@ -415,9 +415,15 @@ static void write_frame(AVFormatContext
&new_pkt.data, &new_pkt.size,
pkt->data, pkt->size,
pkt->flags & PKT_FLAG_KEY);
- if(a){
+ if(a>0){
av_free_packet(pkt);
new_pkt.destruct= av_destruct_packet;
+ } else if(a<0){
+ fprintf(stderr, "%s failed for stream %d, codec %s"
+ , bsfc->filter->name
+ , pkt->stream_index
+ , avctx->codec ? avctx->codec->name : "copy");
+ print_error("", a);
}
*pkt= new_pkt;
More information about the ffmpeg-cvslog
mailing list