[FFmpeg-devel,3/7] lavf/segment: copy stream dispositions in output

Submitted by Rodger Combs on Aug. 2, 2017, 6:30 a.m.

Details

Message ID 1501655445-18976-3-git-send-email-rodger.combs@gmail.com
State New
Headers show

Commit Message

Rodger Combs Aug. 2, 2017, 6:30 a.m.
---
 libavformat/segment.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Rostislav Pehlivanov Nov. 22, 2017, 12:51 a.m.
On 2 August 2017 at 07:30, Rodger Combs <rodger.combs@gmail.com> wrote:

> ---
>  libavformat/segment.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/libavformat/segment.c b/libavformat/segment.c
> index 590f62b..ef0a915 100644
> --- a/libavformat/segment.c
> +++ b/libavformat/segment.c
> @@ -182,6 +182,7 @@ static int segment_mux_init(AVFormatContext *s)
>          }
>          st->sample_aspect_ratio = s->streams[i]->sample_aspect_ratio;
>          st->time_base = s->streams[i]->time_base;
> +        st->disposition = s->streams[i]->disposition;
>          av_dict_copy(&st->metadata, s->streams[i]->metadata, 0);
>      }
>
> --
> 2.6.4
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>

Makes sense, LGTM

Patch hide | download patch | download mbox

diff --git a/libavformat/segment.c b/libavformat/segment.c
index 590f62b..ef0a915 100644
--- a/libavformat/segment.c
+++ b/libavformat/segment.c
@@ -182,6 +182,7 @@  static int segment_mux_init(AVFormatContext *s)
         }
         st->sample_aspect_ratio = s->streams[i]->sample_aspect_ratio;
         st->time_base = s->streams[i]->time_base;
+        st->disposition = s->streams[i]->disposition;
         av_dict_copy(&st->metadata, s->streams[i]->metadata, 0);
     }