[FFmpeg-devel] [PATCH] lavf: add automatic bitstream filtering

Moritz Barsnick barsnick at gmx.net
Fri Jan 15 01:18:03 CET 2016

 libavformat/movenc.c | 30 ++++++++++++++++++++----------
 1 file changed, 20 insertions(+), 10 deletions(-)
 libavformat/flvenc.c | 22 +++++++++++++---------
 1 file changed, 13 insertions(+), 9 deletions(-)

In the spirit of commits 1b5bd4051d1e394f0429cbf6cf6c137f55857478 and
b287d7ea17f404a51eb3fdca80fa8a8b1fb7dd8b, where Rodger Combs applied
his new mechanism of automatic bitstream filter insertion to
lavf/mpegtsenc and lavf/matroskaenc, these patches add the
aac_adtstoasc bsf to lavf/flvenc and lavf/movenc, replacing their
error checks.

Rodger's commits also introduced *_init() functions for each format.
I don't understand whether that is necessary. These patches work
for me just as they are.

Tested against several input files containing and not containing ADTS.
Fate was not run.

Please comment.


More information about the ffmpeg-devel mailing list