[FFmpeg-devel] [PATCH]Reset rotation information when using the transpose filter
Carl Eugen Hoyos
cehoyos at ag.or.at
Thu Nov 15 09:36:59 CET 2012
Hi!
A user report indicates that reencoding rotated QuickTime movies with the
transpose filter (to fix the rotation) leads to videos that QuickTime shows
incorrectly rotated.
The patch is completely untested;-(
Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavfilter/vf_transpose.c b/libavfilter/vf_transpose.c
index dc2ee21..050c109 100644
--- a/libavfilter/vf_transpose.c
+++ b/libavfilter/vf_transpose.c
@@ -32,6 +32,7 @@
#include "libavutil/pixdesc.h"
#include "libavutil/imgutils.h"
#include "libavutil/internal.h"
+#include "libavutil/dict.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
@@ -179,6 +180,8 @@ static int start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref)
if (!outlink->out_buf)
return AVERROR(ENOMEM);
+ av_dict_set(&picref->metadata, "rotate", NULL, 0);
+
outlink->out_buf->pts = picref->pts;
if (picref->video->sample_aspect_ratio.num == 0) {
More information about the ffmpeg-devel
mailing list