[FFmpeg-devel] [PATCH 1/2] ffmpeg: Always run av_packet_split_side_data() before writing a packet
Michael Niedermayer
michael at niedermayer.cc
Fri Nov 4 14:43:44 EET 2016
The new automatically inserted bitstream filters are not compatible with merged side data.
This works around this by spliting the side data out.
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
ffmpeg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index 28daf5f..6c02091 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -787,11 +787,11 @@ static void output_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost)
{
int ret = 0;
+ av_packet_split_side_data(pkt);
/* apply the output bitstream filters, if any */
if (ost->nb_bitstream_filters) {
int idx;
- av_packet_split_side_data(pkt);
ret = av_bsf_send_packet(ost->bsf_ctx[0], pkt);
if (ret < 0)
goto finish;
--
2.10.2
More information about the ffmpeg-devel
mailing list