[FFmpeg-devel] [PATCH] libavformat: fix inputs initialization in mpegts muxer with filters

Andreas Håkon andreas.hakon at protonmail.com
Wed Apr 17 23:28:39 EEST 2019


This patch solves the initialization of the inputs when using filters (a graph filter) with the mpegts muxer.

This bug seems to be generated by a simple forgetting to copy. The same code is repeated two times, but only in one case the variable “inputs_done” is initialized. Compare the two blocks:
- Correct: https://github.com/FFmpeg/FFmpeg/blob/a0559fcd81f42f446c93357a943699f9d44eeb79/fftools/ffmpeg.c#L4627
- Incorrect: https://github.com/FFmpeg/FFmpeg/blob/a0559fcd81f42f446c93357a943699f9d44eeb79/fftools/ffmpeg.c#L4616

In addition, the patch includes a more detailed version of two LOG lines. These lines include useful information to detect this error. And they can help to discover other related errors (specifically related to the “cur_dts is invalid” bug that often appears in some user logs).

Regards.
A.H.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-libavformat-input-init-fix-mpegts-filters.patch.txt
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190417/05e8b62d/attachment.txt>


More information about the ffmpeg-devel mailing list