mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 18:49:58 +00:00
avformat/tee: print errors for each failed bitstream filter
Fixes CID1108584 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ebfe154bd5
commit
68de2115ca
@ -410,18 +410,17 @@ static int filter_packet(void *log_ctx, AVPacket *pkt,
|
|||||||
if (!new_pkt.buf)
|
if (!new_pkt.buf)
|
||||||
break;
|
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;
|
*pkt = new_pkt;
|
||||||
|
|
||||||
bsf_ctx = bsf_ctx->next;
|
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;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user