[FFmpeg-devel] [PATCH 4/4] ffmpeg: move filtered_frame to video stream processing scope.
Clément Bœsch
ubitux at gmail.com
Tue Feb 7 12:04:06 CET 2012
From: Clément Bœsch <clement.boesch at smartjog.com>
---
ffmpeg.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index b3553a2..7c86c22 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2044,7 +2044,7 @@ static int transcode_audio(InputStream *ist, AVPacket *pkt, int *got_output)
static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int64_t *pkt_pts, int64_t *pkt_dts)
{
- AVFrame *decoded_frame, *filtered_frame = NULL;
+ AVFrame *decoded_frame;
void *buffer_to_free = NULL;
int i, ret = 0;
float quality = 0;
@@ -2130,6 +2130,7 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int
rate_emu_sleep(ist);
for (i = 0; i < nb_output_streams; i++) {
+ AVFrame *filtered_frame = NULL;
OutputStream *ost = &output_streams[i];
int frame_size;
--
1.7.8.3
More information about the ffmpeg-devel
mailing list