Ticket #885: 0001-Patch-for-segfault-in-ffmpeg.c-with-zzufed-4xm-file..patch

File 0001-Patch-for-segfault-in-ffmpeg.c-with-zzufed-4xm-file..patch, 1023 bytes (added by Oana Stratulat, 15 years ago)

Patch for this bug.

  • ffmpeg.c

    From 320dead86f65de78728ef7d0e1b1e20a78bbfd77 Mon Sep 17 00:00:00 2001
    From: Oana Stratulat <oanaandreeastratulat@gmail.com>
    Date: Thu, 5 Jan 2012 17:55:20 +0200
    Subject: [PATCH] Patch for segfault in ffmpeg.c with zzufed 4xm file. Fixes
     ticket 885
    
    Signed-off-by: Oana Stratulat <oanaandreeastratulat@gmail.com>
    ---
     ffmpeg.c |    4 ++--
     1 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/ffmpeg.c b/ffmpeg.c
    index 2174b93..4b8d689 100644
    a b static void do_audio_out(AVFormatContext *s, OutputStream *ost,  
    10151015                         InputStream *ist, AVFrame *decoded_frame)
    10161016{
    10171017    uint8_t *buftmp;
    1018     int64_t audio_out_size, audio_buf_size;
     1018    int64_t audio_out_size, audio_buf_size, size_out;
    10191019
    1020     int size_out, frame_bytes, ret, resample_changed;
     1020    int frame_bytes, ret, resample_changed;
    10211021    AVCodecContext *enc = ost->st->codec;
    10221022    AVCodecContext *dec = ist->st->codec;
    10231023    int osize = av_get_bytes_per_sample(enc->sample_fmt);