examples: Fix use of AV_CODEC_FLAG_GLOBAL_HEADER
authorMichael Bunk <bunk@iat.uni-leipzig.de>
Thu, 30 Aug 2018 06:56:19 +0000 (08:56 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 31 Oct 2018 23:52:46 +0000 (00:52 +0100)
commit7266a6d23c8943d76cf1e056671c9a8bd9902069
tree760fb2d875f67e80cc3372feb74fca3945add743
parent66331499a7d221d5053f74452c976b2d8f2038f6
examples: Fix use of AV_CODEC_FLAG_GLOBAL_HEADER

AV_CODEC_FLAG_GLOBAL_HEADER should be set before calling avcodec_open2() to have any effect.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit a82e4fb8c6f26e75506df6818fee1b61f940cbeb)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
doc/examples/transcoding.c