[FFmpeg-devel] [patch] 24bit lpcm in mpeg (vob)

Lars Täuber lars.taeuber
Sat Apr 12 18:40:07 CEST 2008


Hallo!

> > > -            st->codec->bit_rate = st->codec->channels * st->codec->sample_rate * 2;

This was just wrong i think.
Changed to:
+        st->codec->bit_rate = st->codec->channels *
+                              st->codec->sample_rate *
+                              av_get_bits_per_sample(st->codec->codec_id);


 
> > > --- ffmpeg.1/libavcodec/utils.c	2008-04-12 14:54:36.000000000 +0200
> > > +++ ffmpeg.3/libavcodec/utils.c	2008-04-12 15:24:44.000000000 +0200
> > > @@ -1326,13 +1326,14 @@ int av_get_bits_per_sample(enum CodecID 
> > >      case CODEC_ID_PCM_U32LE:
> > >          return 32;
> > > +    case CODEC_ID_PCM_S24DVD:
> > > +        return 48;  /** here are 2 samples interleaved per block */

removed completely
therefor a new patch for better sanity check appended

The configure/Makefile system is not changed to support PCM_S24DVD because I don't know how to do this.

Regards
Lars
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 24pcm_dvd.patch
Type: text/x-diff
Size: 3776 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080412/09a9abb7/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: better_sanity_check.patch
Type: text/x-diff
Size: 1014 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080412/09a9abb7/attachment-0001.patch>



More information about the ffmpeg-devel mailing list