[FFmpeg-devel] [PATCH 2/2] ffmpeg: stop using AVStream.codec on stream copy
Michael Niedermayer
michael at niedermayer.cc
Tue Sep 27 00:38:33 EEST 2016
On Mon, Sep 26, 2016 at 02:39:13PM -0300, James Almer wrote:
> This commit is based on commit 35c8580 from Anton Khirnov <anton at khirnov.net>
> which was skipped in b8945c4.
>
> The avcodec_copy_context() call in the encode path is left in place for now
> as AVStream.codec is apparently still required even after porting ffmpeg to
> the new bsf API.
>
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
> ffmpeg.c | 25 ++++++++++++-------------
> ffmpeg.h | 1 +
> ffmpeg_opt.c | 12 +-----------
> 3 files changed, 14 insertions(+), 24 deletions(-)
This breaks
./ffmpeg -i matrixbench_mpeg2.mpg -flags +bitexact -t 1 -codec copy -f framecrc -
compared to the case before the patch and without codec copy
"#software: Lavf57.50.100"
is output
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Freedom in capitalist society always remains about the same as it was in
ancient Greek republics: Freedom for slave owners. -- Vladimir Lenin
-------------- 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/20160926/ed659be2/attachment.sig>
More information about the ffmpeg-devel
mailing list