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,
|
| 1015 | 1015 | InputStream *ist, AVFrame *decoded_frame) |
| 1016 | 1016 | { |
| 1017 | 1017 | uint8_t *buftmp; |
| 1018 | | int64_t audio_out_size, audio_buf_size; |
| | 1018 | int64_t audio_out_size, audio_buf_size, size_out; |
| 1019 | 1019 | |
| 1020 | | int size_out, frame_bytes, ret, resample_changed; |
| | 1020 | int frame_bytes, ret, resample_changed; |
| 1021 | 1021 | AVCodecContext *enc = ost->st->codec; |
| 1022 | 1022 | AVCodecContext *dec = ist->st->codec; |
| 1023 | 1023 | int osize = av_get_bytes_per_sample(enc->sample_fmt); |