diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-07-14 13:16:17 +0300 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-07-22 20:08:13 +0300 |
commit | d59641abfd25a1007bdf4723d952887b1e3619c6 (patch) | |
tree | a1e1eb678d457dbb8af2594dae6c55eae100bedd | |
parent | 8b7a9729aa162e2bbd571933f1aa40767f1ff47b (diff) |
lavc: initialize AVCodecContext.sw_pix_fmt properly
Currently it's memset to 0, which is YUV420P. It should be initialized
to none.
-rw-r--r-- | libavcodec/options.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/options.c b/libavcodec/options.c index 18613ace96..00921fbec3 100644 --- a/libavcodec/options.c +++ b/libavcodec/options.c @@ -98,6 +98,7 @@ static int init_context_defaults(AVCodecContext *s, const AVCodec *codec) s->execute2 = avcodec_default_execute2; s->sample_aspect_ratio = (AVRational){0,1}; s->pix_fmt = AV_PIX_FMT_NONE; + s->sw_pix_fmt = AV_PIX_FMT_NONE; s->sample_fmt = AV_SAMPLE_FMT_NONE; s->reordered_opaque = AV_NOPTS_VALUE; |