[FFmpeg-devel] [PATCH 2/4] ffmpeg: use the write_uncoded_frame() API.

Michael Niedermayer michaelni at gmx.at
Tue Jan 14 06:48:22 CET 2014


On Mon, Jan 13, 2014 at 10:23:44AM +0100, Nicolas George wrote:
> Signed-off-by: Nicolas George <george at nsup.org>
> ---
>  ffmpeg.c | 58 +++++++++++++++++++++++++++++++++++++++++++++++++---------
>  ffmpeg.h |  1 +
>  2 files changed, 50 insertions(+), 9 deletions(-)
> 
> 
> A few corner cases fixed, and a better magic number for the packet size.
> 
> 
> diff --git a/ffmpeg.c b/ffmpeg.c
> index 5ccbf10..ae362f6 100644
> --- a/ffmpeg.c
> +++ b/ffmpeg.c
> @@ -163,6 +163,8 @@ static struct termios oldtty;
>  static int restore_tty;
>  #endif
>  
> +#define UNCODED_FRAME_PACKET_SIZE (INT_MIN / 3 * 2 + (int)sizeof(AVFrame))

meybe ffmpeg.c  and avformat should use different values so
no unintended dependancy between the 2 can be added by mistake

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

Observe your enemies, for they first find out your faults. -- Antisthenes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140114/4fe51384/attachment.asc>


More information about the ffmpeg-devel mailing list