aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorBenoit Fouet <benoit.fouet@free.fr>2008-01-21 13:36:20 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2008-01-21 13:36:20 +0000
commit7055cdacab305caf36c035060d695f4fa1dfce1d (patch)
treed6f588f1c89b0bb8ea9aedeef8bd8c87a1d67fc8 /ffmpeg.c
parentc448a09624eff091fe3490ff09852e95dc1026b1 (diff)
downloadffmpeg-7055cdacab305caf36c035060d695f4fa1dfce1d.tar.gz
Inform user when bitstream filter fails.
Originally committed as revision 11587 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 9176072724..751ba5c815 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -415,9 +415,15 @@ static void write_frame(AVFormatContext *s, AVPacket *pkt, AVCodecContext *avctx
&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;