[FFmpeg-devel,1/2] avformat/mpegtsenc: set AVFMT_NODIMENSIONS

Submitted by Aman Gupta on May 10, 2018, 2:23 a.m.

Details

Message ID 20180510022336.68863-1-ffmpeg@tmm1.net
State Accepted
Commit 6f50be876016979c43a3e468290f363a2f095f33
Headers show

Commit Message

Aman Gupta May 10, 2018, 2:23 a.m.
From: Aman Gupta <aman@tmm1.net>

This allows remuxing streams from one mpegts container to another,
without requiring avformat_find_stream_info() (or using `ffmpeg
-probesize 32` on the cli).
---
 libavformat/mpegtsenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michael Niedermayer May 10, 2018, 11:53 p.m.
On Wed, May 09, 2018 at 07:23:35PM -0700, Aman Gupta wrote:
> From: Aman Gupta <aman@tmm1.net>
> 
> This allows remuxing streams from one mpegts container to another,
> without requiring avformat_find_stream_info() (or using `ffmpeg
> -probesize 32` on the cli).
> ---
>  libavformat/mpegtsenc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

LGTM

thx

[...]

Patch hide | download patch | download mbox

diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index 8b0736ac4e..3339e26d50 100644
--- a/libavformat/mpegtsenc.c
+++ b/libavformat/mpegtsenc.c
@@ -1983,6 +1983,6 @@  AVOutputFormat ff_mpegts_muxer = {
     .write_trailer  = mpegts_write_end,
     .deinit         = mpegts_deinit,
     .check_bitstream = mpegts_check_bitstream,
-    .flags          = AVFMT_ALLOW_FLUSH | AVFMT_VARIABLE_FPS,
+    .flags          = AVFMT_ALLOW_FLUSH | AVFMT_VARIABLE_FPS | AVFMT_NODIMENSIONS,
     .priv_class     = &mpegts_muxer_class,
 };