# HG changeset patch # User jai_menon # Date 1259268373 0 # Node ID 1368ec7cca5bf90107cb6b5e06655717d5e6f1b4 # Parent db54dba1f21ce6edf168c598a4bdb5cf04df9e9b Allow decoders to correctly set the sample format by defaulting to SAMPLE_FMT_NONE in avcodec_get_context_defaults2. diff -r db54dba1f21c -r 1368ec7cca5b options.c --- a/options.c Thu Nov 26 20:00:03 2009 +0000 +++ b/options.c Thu Nov 26 20:46:13 2009 +0000 @@ -437,7 +437,7 @@ 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;