[FFmpeg-devel] [PATCH 2/2] avformat/mux: split side data before internal auto BSF
Michael Niedermayer
michael at niedermayer.cc
Fri Nov 4 14:43:45 EET 2016
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 at niedermayer.cc>
---
libavformat/mux.c | 3 +++
1 file changed, 3 insertions(+)
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) {
--
2.10.2
More information about the ffmpeg-devel
mailing list