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

Michael Niedermayer michaelni
Mon Jun 14 02:06:18 CEST 2010


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

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The real ebay dictionary, page 1
"Used only once"    - "Some unspecified defect prevented a second use"
"In good condition" - "Can be repaird by experienced expert"
"As is" - "You wouldnt want it even if you were payed for it, if you knew ..."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100614/78f593e9/attachment.pgp>



More information about the ffmpeg-devel mailing list