[Ffmpeg-devel] Re: [PATCH] Make pcm.c use bytestream functions

Michael Niedermayer michaelni
Fri Mar 16 12:55:14 CET 2007


Hi

On Thu, Mar 15, 2007 at 05:44:08PM -0300, Ramiro Polla wrote:
[...]
> pcm_av_rwbl.diff changes the functions to use AV_xx16.

looks ok


> pcm_bytestream.diff makes 16 and 24 bit reads/writes use bytestream.

looks ok


> pcm_byte.diff changes dst[0]; dst++; blocks to *dst++;

[...]

> Index: libavcodec/pcm.c
> ===================================================================
> --- libavcodec/pcm.c	(revis?o 8397)
> +++ libavcodec/pcm.c	(c?pia de trabalho)
> @@ -292,29 +292,25 @@
[...]
>      case CODEC_ID_PCM_ALAW:
>          for(;n>0;n--) {
>              v = *samples++;
> -            dst[0] = linear_to_alaw[(v + 32768) >> 2];
> -            dst++;
> +            *dst = linear_to_alaw[(v + 32768) >> 2];
>          }

++

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Everything should be made as simple as possible, but not simpler.
-- Albert Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070316/55cd994e/attachment.pgp>



More information about the ffmpeg-devel mailing list