[FFmpeg-devel] [PATCH] ffmpeg: copy color properties in case of -c:v copy.
michael at niedermayer.cc
Wed May 4 04:21:10 CEST 2016
On Tue, May 03, 2016 at 08:58:07PM -0400, Ronald S. Bultje wrote:
> On Tue, May 3, 2016 at 8:29 PM, Michael Niedermayer <michael at niedermayer.cc>
> > On Tue, May 03, 2016 at 03:21:00PM -0400, Ronald S. Bultje wrote:
> > > I have no idea why the first hunk uses ost->enc_ctx, because as far as
> > > I understand, that is never used in case of -c:v copy, but this code
> > > block is only entered if encoding_needed=0, which means stream_copy=1.
> > when the code was added it was followed by a
> > ret = avcodec_copy_context(ost->st->codec, ost->enc_ctx);
> > later that was removed
> > do you have a testcase for which this hunk makes a differnce?
> ffmpeg -i any_webm_file -color_trc 4 -strict -2 -c:v copy out.webm
> Will set the colorspace element in the muxer after, but not before, this
patch should be ok
can you add a testcase for this to fate ?
so this doesnt break, nothing in fate tests this
even commenting the code out entirely made fate still pass
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Complexity theory is the science of finding the exact solution to an
approximation. Benchmarking OTOH is finding an approximation of the exact
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 181 bytes
Desc: Digital signature
More information about the ffmpeg-devel