Merge remote-tracking branch 'origin/main' into v2.17.x
[dcpomatic.git] / src / lib / ffmpeg_examiner.cc
index 583ea129725eadee1e09e162bcacb3d00ffaf401..f7d3f9df334b8d92f00c93adc456c08b587cec30 100644 (file)
@@ -173,8 +173,6 @@ FFmpegExaminer::FFmpegExaminer (shared_ptr<const FFmpegContent> c, shared_ptr<Jo
                /* This code taken from get_rotation() in ffmpeg:cmdutils.c */
                auto stream = _format_context->streams[*_video_stream];
                auto rotate_tag = av_dict_get (stream->metadata, "rotate", 0, 0);
-               _rotation = 0;
-
                if (rotate_tag && *rotate_tag->value && strcmp(rotate_tag->value, "0")) {
                        char *tail;
                        _rotation = av_strtod (rotate_tag->value, &tail);