[FFmpeg-devel] [PATCH 07/11] lavf/movenc+dashenc: add automatic bitstream filtering

Michael Niedermayer michael at niedermayer.cc
Mon Oct 24 20:21:46 EEST 2016


On Fri, Sep 09, 2016 at 11:37:21PM -0500, Rodger Combs wrote:
> This is disabled by default when the empty_moov flag is enabled
> ---
>  libavformat/dashenc.c |  43 +++++++++++++++++++-
>  libavformat/movenc.c  | 107 +++++++++++++++++++++++++++++++++++++++-----------
>  2 files changed, 124 insertions(+), 26 deletions(-)
[...]

> +static int mov_write_header(AVFormatContext *s)
> +{
> +    AVIOContext *pb = s->pb;
> +    MOVMuxContext *mov = s->priv_data;
> +    AVDictionaryEntry *t, *global_tcr = av_dict_get(s->metadata, "timecode", NULL, 0);
> +    int i, ret, hint_track = 0, tmcd_track = 0, nb_tracks = s->nb_streams;
> +
> +    if (mov->mode & (MODE_MP4|MODE_MOV|MODE_IPOD) && s->nb_chapters)
> +        nb_tracks++;
> +
> +    if (mov->flags & FF_MOV_FLAG_RTP_HINT) {
> +        /* Add hint tracks for each audio and video stream */
> +        hint_track = nb_tracks;
> +        for (i = 0; i < s->nb_streams; i++) {
> +            AVStream *st = s->streams[i];
> +            if (st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO ||
> +                st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO) {
> +                nb_tracks++;
> +            }
> +        }
> +    }
> +
> +    if (mov->mode == MODE_MOV || mov->mode == MODE_MP4)
> +        tmcd_track = nb_tracks;

tmcd_track and hint_track are set but unused

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you think the mosad wants you dead since a long time then you are either
wrong or dead since a long time.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20161024/96669573/attachment.sig>


More information about the ffmpeg-devel mailing list