[FFmpeg-devel] [PATCH] G.729 main decoding routine (skeleton)

Michael Niedermayer michaelni
Tue Jun 9 16:10:36 CEST 2009


On Sun, Jun 07, 2009 at 08:37:43AM +0700, Vladimir Voroshilov wrote:
> 2009/6/7 Diego Biurrun <diego at biurrun.de>:
> > On Sun, Jun 07, 2009 at 02:50:30AM +0700, Vladimir Voroshilov wrote:
> >> Main decoding routine (almost complete).
> >>
> >> --- ffmpeg-r19127.orig/libavcodec/g729dec.c
> >> +++ ffmpeg-r19127.mod/libavcodec/g729dec.c
> >> @@ -158,15 +161,26 @@ static av_cold int decoder_init(AVCodecContext * avctx)
> >>
> >> + ? ?const uint8_t *buf = avpkt->data;
> >> + ? ?int buf_size = avpkt->size;
> >
> > Things like this could be vertically aligned for better readability.
> 
> Aligned version
> 
> 
> -- 
> Regards,
> Vladimir Voroshilov     mailto:voroshil at gmail.com
> JID: voroshil at gmail.com, voroshil at jabber.ru
> ICQ: 95587719

>  g729dec.c |   18 ++++++++++++++++--
>  1 file changed, 16 insertions(+), 2 deletions(-)
> e09023cde28150dc43b1754aef196ffdb78787ad  0002-Main-decoding-routine.123.patch
> From d55ad6fd10fa5f67344fd4e1d1a59cc1defc490b Mon Sep 17 00:00:00 2001
> From: Vladimir Voroshilov <voroshil at gmail.com>
> Date: Thu, 4 Jun 2009 19:30:31 +0700
> Subject: [PATCH] Main decoding routine
> 
> 
> diff --git ffmpeg-r19127.orig/libavcodec/g729dec.c ffmpeg-r19127.mod/libavcodec/g729dec.c
> index 5e063d7..480f126 100644
> --- ffmpeg-r19127.orig/libavcodec/g729dec.c
> +++ ffmpeg-r19127.mod/libavcodec/g729dec.c
> @@ -83,6 +83,7 @@ typedef struct {
>  
>  typedef struct {
>      int subframe_size;          ///< number of samples produced from one subframe

> +    int packed_frame_size;      ///< input frame size (in bytes)

bytes_per_frame

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

The misfortune of the wise is better than the prosperity of the fool.
-- Epicurus
-------------- 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/20090609/d822a8f1/attachment.pgp>



More information about the ffmpeg-devel mailing list