Commit a28b37e1 authored by jai_menon's avatar jai_menon

Allow decoders to correctly set the sample format by defaulting to

SAMPLE_FMT_NONE in avcodec_get_context_defaults2.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20623 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5378ff28
......@@ -437,7 +437,7 @@ void avcodec_get_context_defaults2(AVCodecContext *s, enum CodecType codec_type)
s->execute2= avcodec_default_execute2;
s->sample_aspect_ratio= (AVRational){0,1};
s->pix_fmt= PIX_FMT_NONE;
s->sample_fmt= SAMPLE_FMT_S16; // FIXME: set to NONE
s->sample_fmt= SAMPLE_FMT_NONE;
s->palctrl = NULL;
s->reget_buffer= avcodec_default_reget_buffer;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment