diff options
author | James Almer <jamrial@gmail.com> | 2023-07-16 20:04:24 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-10-06 10:11:18 -0300 |
commit | 235a66a1436c4d5bf0f4e5d13fc1bc2f49b22f19 (patch) | |
tree | a813a893a74ebf2dec6778fd8958f2ac10670a9b /fftools | |
parent | 3fd37b52680afc30d17bf438793ce93264592d56 (diff) | |
download | ffmpeg-235a66a1436c4d5bf0f4e5d13fc1bc2f49b22f19.tar.gz |
fftools/ffplay: stop using AVStream.side_data
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'fftools')
-rw-r--r-- | fftools/ffplay.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/fftools/ffplay.c b/fftools/ffplay.c index 006da7ab57..f5354575c9 100644 --- a/fftools/ffplay.c +++ b/fftools/ffplay.c @@ -1916,8 +1916,13 @@ static int configure_video_filters(AVFilterGraph *graph, VideoState *is, const c AVFrameSideData *sd = av_frame_get_side_data(frame, AV_FRAME_DATA_DISPLAYMATRIX); if (sd) displaymatrix = (int32_t *)sd->data; - if (!displaymatrix) - displaymatrix = (int32_t *)av_stream_get_side_data(is->video_st, AV_PKT_DATA_DISPLAYMATRIX, NULL); + if (!displaymatrix) { + const AVPacketSideData *sd = av_packet_side_data_get(is->video_st->codecpar->coded_side_data, + is->video_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) { |