diff mbox

[FFmpeg-devel,2/2] avformat/mux: split side data before internal auto BSF

Message ID 20161104124345.5031-3-michael@niedermayer.cc
State Accepted
Commit 9e588125193115189b5a609eef6af678a55f6ecf
Headers show

Commit Message

Michael Niedermayer Nov. 4, 2016, 12:43 p.m. UTC
The bitstream filters do not work with merged in side data

This leaves the input packet split if it is being split.
It could be merged again, if thats preferred ? That would involve
an extra malloc and memcpy though

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavformat/mux.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/libavformat/mux.c b/libavformat/mux.c
index 06d87de..3a19364 100644
--- a/libavformat/mux.c
+++ b/libavformat/mux.c
@@ -878,6 +878,9 @@  static int do_packet_auto_bsf(AVFormatContext *s, AVPacket *pkt) {
         }
     }
 
+    if (st->internal->nb_bsfcs)
+        av_packet_split_side_data(pkt);
+
     for (i = 0; i < st->internal->nb_bsfcs; i++) {
         AVBSFContext *ctx = st->internal->bsfcs[i];
         if (i > 0) {