]> git.sesse.net Git - ffmpeg/commit
avcodec: Make sure codec_type is set by avcodec_get_context_defaults2
authorMartin Storsjö <martin@martin.st>
Thu, 3 Nov 2011 09:40:13 +0000 (11:40 +0200)
committerMartin Storsjö <martin@martin.st>
Thu, 3 Nov 2011 11:29:48 +0000 (13:29 +0200)
commitcae4f4b77e7dc037ad5dfcc7bc636788f1420ba9
treeea4b9db9f6e050bf066a1ec300515d0c18a03a79
parent1b6da627d49e98fe7661c9aa9ec4e16ab04dfda4
avcodec: Make sure codec_type is set by avcodec_get_context_defaults2

This function used to set codec_type. With the current fallback
implementation based on avcodec_get_context_defaults3, codec_type
won't be set to the value passed in, but will be set to
AVMEDIA_TYPE_UNKNOWN. Legacy callers of this function might expect
this field to be set to the value passed in.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/options.c