[FFmpeg-devel] [PATCH] Set sample_fmt in output-example.

Ramiro Polla ramiro.polla
Mon Jun 14 09:06:15 CEST 2010


On Sun, Jun 13, 2010 at 9:06 PM, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Sun, Jun 13, 2010 at 05:18:57PM -0300, Ramiro Polla wrote:
>> $subj
>>
>> currently "./output-example output.wav" doesn't work.
>
>> ?output-example.c | ? ?1 +
>> ?1 file changed, 1 insertion(+)
>> e74e9799c2e0e1f382a562012c3377078d1fb65b ?output_example_sample_fmt_s16.diff
>> Index: libavformat/output-example.c
>> ===================================================================
>> --- libavformat/output-example.c ? ? ?(revision 23571)
>> +++ libavformat/output-example.c ? ? ?(working copy)
>> @@ -68,6 +68,7 @@
>> ? ? ?c->codec_type = AVMEDIA_TYPE_AUDIO;
>>
>> ? ? ?/* put sample parameters */
>> + ? ?c->sample_fmt = SAMPLE_FMT_S16;
>
> ok

Applied.



More information about the ffmpeg-devel mailing list