changeset 10578:1368ec7cca5b libavcodec

Allow decoders to correctly set the sample format by defaulting to SAMPLE_FMT_NONE in avcodec_get_context_defaults2.
author jai_menon
date Thu, 26 Nov 2009 20:46:13 +0000
parents db54dba1f21c
children dacdec913c5b
files options.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;