[FFmpeg-devel] [PATCH 1/2] avformat/flvenc: add flv living stream flag

Carl Eugen Hoyos ceffmpeg at gmail.com
Thu Sep 29 15:53:52 EEST 2016


2016-09-29 11:56 GMT+02:00 Steven Liu <lingjiujianke at gmail.com>:

 > +    FLV_LIVING_STREAM = (1 << 2),

Should this be FLV_LIVE_STREAM?

> -    if (avio_seek(pb, flv->duration_offset, SEEK_SET) < 0)
> -        av_log(s, AV_LOG_WARNING, "Failed to update header with correct duration.\n");
> -    else
> -        put_amf_double(pb, flv->duration / (double)1000);
> -    if (avio_seek(pb, flv->filesize_offset, SEEK_SET) < 0)
> -        av_log(s, AV_LOG_WARNING, "Failed to update header with correct filesize.\n");
> -    else
> -        put_amf_double(pb, file_size);

If you reindent these lines, please add a few braces.

Thank you, Carl Eugen


More information about the ffmpeg-devel mailing list