diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-03-29 23:18:14 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-03-29 23:18:15 +0100 |
| commit | bdcaf60ec37ec694f1e221a33b090f670bf974d6 (patch) | |
| tree | 987198478c6a3f64293c6bca6d1cf3dd8bd85525 | |
| parent | 00301ddfa6a7f4c79593d8c86a0ff208aa3be68a (diff) | |
Fix lack of video rotation in some cases (#2971).
Setting the optional to 0 here means we never even looked at the
packet side data. This seems to be more of a problem with the
v2.17.x branch for some reason.
| -rw-r--r-- | src/lib/ffmpeg_examiner.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_examiner.cc b/src/lib/ffmpeg_examiner.cc index 15cb14ad5..787198e4a 100644 --- a/src/lib/ffmpeg_examiner.cc +++ b/src/lib/ffmpeg_examiner.cc @@ -182,7 +182,6 @@ FFmpegExaminer::FFmpegExaminer (shared_ptr<const FFmpegContent> c, shared_ptr<Jo auto stream = _format_context->streams[*_video_stream]; auto rotate_tag = av_dict_get (stream->metadata, "rotate", 0, 0); uint8_t* displaymatrix = av_stream_get_side_data (stream, AV_PKT_DATA_DISPLAYMATRIX, 0); - _rotation = 0; if (rotate_tag && *rotate_tag->value && strcmp(rotate_tag->value, "0")) { char *tail; |
