[FFmpeg-devel] [RFC] LPCM 24 bits support

Lars Täuber lars.taeuber
Wed May 7 22:31:04 CEST 2008


On Wed, 7 May 2008 21:19:14 +0200 Michael Niedermayer <michaelni at gmx.at> wrote:

> > @@ -492,6 +498,20 @@ static int pcm_decode_frame(AVCodecConte
> >              *samples++ = s->table[*src++];
> >          }
> >          break;
> > +    case CODEC_ID_PCM_DVD:
> > +        if(avctx->bits_per_sample != 20 && avctx->bits_per_sample != 24) {
> > +            av_log(avctx, AV_LOG_ERROR, "PCM DVD unsupported sample depth\n");
> > +            return -1;
> > +        } else {
> > +            uint8_t jump = avctx->channels * (avctx->bits_per_sample-16) / 4;
> 
> int please

Ok. As you like.
But could you explain the reason? I'm still learning.

Good night.
Lars
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pcm_dvd.patch
Type: text/x-diff
Size: 5401 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080507/23e032a9/attachment.patch>



More information about the ffmpeg-devel mailing list