mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
fftools/ffmpeg_filter: stop taking display matrix from global side data
It should never be necessary now that decoders propagate global side data to frames.
This commit is contained in:
parent
cb9f1f59a1
commit
09438d6529
@ -1523,16 +1523,9 @@ static int configure_input_video_filter(FilterGraph *fg, AVFilterGraph *graph,
|
||||
|
||||
// TODO: insert hwaccel enabled filters like transpose_vaapi into the graph
|
||||
if (ist->autorotate && !(desc->flags & AV_PIX_FMT_FLAG_HWACCEL)) {
|
||||
const AVPacketSideData *sd = NULL;
|
||||
int32_t *displaymatrix = ifp->displaymatrix;
|
||||
double theta;
|
||||
|
||||
if (!ifp->displaymatrix_present)
|
||||
sd = av_packet_side_data_get(ist->st->codecpar->coded_side_data,
|
||||
ist->st->codecpar->nb_coded_side_data,
|
||||
AV_PKT_DATA_DISPLAYMATRIX);
|
||||
if (sd)
|
||||
displaymatrix = (int32_t *)sd->data;
|
||||
theta = get_rotation(displaymatrix);
|
||||
|
||||
if (fabs(theta - 90) < 1.0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user