[Ffmpeg-devel] Re: [PATCH] new mov_read_packet, mov_read_seek
Michael Niedermayer
michaelni
Fri Jul 7 19:39:46 CEST 2006
Hi
On Fri, Jul 07, 2006 at 05:02:27PM +0200, Baptiste Coudurier wrote:
[...]
> > [...]
> >
> > could you add a little function to libavcodec/utils.c :
> > something like
> > av_get_bits_per_sample(CodecID codec_id){
> > switch(codec_id;
> > case CODEC_ID_PCM_S16LE:
> > case CODEC_ID_PCM_S16BE:
> > return 16;
> > ...
> > default:
> > return 0;
> > }
> >
> > and use it, there are so many places in libav* which need this that its
> > starting to hurt to see this in various varations over and over ...
> >
> > [...]
>
> Like the attached patched ?
yes
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is
More information about the ffmpeg-devel
mailing list