[FFmpeg-cvslog] ffmpeg: move filtered_frame to video stream processing scope.
Clément Bœsch
git at videolan.org
Fri Feb 10 20:35:08 CET 2012
ffmpeg | branch: master | Clément Bœsch <clement.boesch at smartjog.com> | Tue Feb 7 11:49:53 2012 +0100| [cf31060127f486400219d93d67199fdc93b7b77d] | committer: Clément Bœsch
ffmpeg: move filtered_frame to video stream processing scope.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cf31060127f486400219d93d67199fdc93b7b77d
---
ffmpeg.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index d4d910e..8409610 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2050,7 +2050,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)
{
- AVFrame *decoded_frame, *filtered_frame = NULL;
+ AVFrame *decoded_frame;
void *buffer_to_free = NULL;
int i, ret = 0;
float quality = 0;
@@ -2119,6 +2119,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;
More information about the ffmpeg-cvslog
mailing list