OSDN Git Service

ffmpeg: stop using AVStream.codec on stream copy
authorJames Almer <jamrial@gmail.com>
Tue, 27 Sep 2016 13:10:44 +0000 (10:10 -0300)
committerJames Almer <jamrial@gmail.com>
Tue, 27 Sep 2016 13:42:51 +0000 (10:42 -0300)
commit4a05d2eda7215fcadbebec8f4656bbb71574567e
tree03dd827febe894f4d5e0a5e12f6cf4a523d8453d
parentf0b6f7253f3e69a475722b8f0b0e4289201245bf
ffmpeg: stop using AVStream.codec on stream copy

This commit is based on commit 35c8580 from Anton Khirnov <anton@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.

Tested-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
ffmpeg.c
ffmpeg.h
ffmpeg_opt.c