mirror of https://git.ffmpeg.org/ffmpeg.git
fftools/ffplay: stop using AVStream.side_data
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
3fd37b5268
commit
235a66a143
|
@ -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);
|
AVFrameSideData *sd = av_frame_get_side_data(frame, AV_FRAME_DATA_DISPLAYMATRIX);
|
||||||
if (sd)
|
if (sd)
|
||||||
displaymatrix = (int32_t *)sd->data;
|
displaymatrix = (int32_t *)sd->data;
|
||||||
if (!displaymatrix)
|
if (!displaymatrix) {
|
||||||
displaymatrix = (int32_t *)av_stream_get_side_data(is->video_st, AV_PKT_DATA_DISPLAYMATRIX, NULL);
|
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);
|
theta = get_rotation(displaymatrix);
|
||||||
|
|
||||||
if (fabs(theta - 90) < 1.0) {
|
if (fabs(theta - 90) < 1.0) {
|
||||||
|
|
Loading…
Reference in New Issue