Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-26 23:08:44 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-04-26 23:08:44 +0400
commit68de2115ca1a2095848dd8d8655ee49812b250de (patch)
tree0508d742f5de9d63665066db64902f854bdcf6ae /libavformat/tee.c
parentebfe154bd52204a4da19d26d8d5ae0f8003558ac (diff)
avformat/tee: print errors for each failed bitstream filter
Fixes CID1108584 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/tee.c')
-rw-r--r--libavformat/tee.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/libavformat/tee.c b/libavformat/tee.c
index 12ea0ea27d..f26e15742a 100644
--- a/libavformat/tee.c
+++ b/libavformat/tee.c
@@ -410,18 +410,17 @@ static int filter_packet(void *log_ctx, AVPacket *pkt,
if (!new_pkt.buf)
break;
}
+ if (ret < 0) {
+ av_log(log_ctx, AV_LOG_ERROR,
+ "Failed to filter bitstream with filter %s for stream %d in file '%s' with codec %s\n",
+ bsf_ctx->filter->name, pkt->stream_index, fmt_ctx->filename,
+ avcodec_get_name(enc_ctx->codec_id));
+ }
*pkt = new_pkt;
bsf_ctx = bsf_ctx->next;
}
- if (ret < 0) {
- av_log(log_ctx, AV_LOG_ERROR,
- "Failed to filter bitstream with filter %s for stream %d in file '%s' with codec %s\n",
- bsf_ctx->filter->name, pkt->stream_index, fmt_ctx->filename,
- avcodec_get_name(enc_ctx->codec_id));
- }
-
return ret;
}