On Fri, Jan 23, 2015 at 7:15 PM, Vittorio Giovara <vittorio.giov...@gmail.com> wrote: > On Tue, Jan 13, 2015 at 1:55 PM, Vittorio Giovara > <vittorio.giov...@gmail.com> wrote: >> On Thu, Dec 4, 2014 at 8:09 PM, Vittorio Giovara >> <vittorio.giov...@gmail.com> wrote: >>> During remuxing avcodec_copy_context() is discouraged as certain fields >>> (such as codec_tag) could reflect invalid values between input and >>> output contextes. >>> --- >>> libavformat/avformat.h | 4 ++++ >>> 1 file changed, 4 insertions(+) >>> >>> diff --git a/libavformat/avformat.h b/libavformat/avformat.h >>> index 4706f62..197a3f1 100644 >>> --- a/libavformat/avformat.h >>> +++ b/libavformat/avformat.h >>> @@ -198,6 +198,10 @@ >>> * be set to the timebase that the caller desires to use for this stream >>> (note >>> * that the timebase actually used by the muxer can be different, as >>> will be >>> * described later). >>> + * - It is advised to manually initialize only the relevant fields in >>> + * AVCodecContext, rather than using @ref avcodec_copy_context() during >>> + * remuxing: there is no guarantee that the codec context values remain >>> valid >>> + * for both input and output format contextes. >>> * - The caller may fill in additional information, such as @ref >>> * AVFormatContext.metadata "global" or @ref AVStream.metadata >>> "per-stream" >>> * metadata, @ref AVFormatContext.chapters "chapters", @ref >>> -- >>> 1.9.3 (Apple Git-50) >>> >> >> ping > > ping
ping -- Vittorio _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel