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>
Sat, 1 Sep 2018 17:26:29 +0000 (19:26 +0200)
commita82e4fb8c6f26e75506df6818fee1b61f940cbeb
treefd12c4bead6c97d21172a290fcc6c84916ffcde5
parentce8807c29001408eb25038316e31229533437e8a
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>
doc/examples/transcoding.c