Skip to content

demux_lavf: read the stereo 3D mode from the stream side data - #18511

Merged
kasper93 merged 2 commits into
mpv-player:masterfrom
kasper93:s3d-lavf
Sep 23, 2026
Merged

kasper93 merged 2 commits into
mpv-player:masterfrom
kasper93:s3d-lavf

Conversation

@kasper93

Copy link
Copy Markdown
Member

No description provided.

Move it out of mp_image_from_av_frame() next to mp_stereo3d_names[],
so demuxers can map stream side data the same way.
libavcodec maps the stream side data onto every frame it allocates
through ff_get_buffer(), so this changes nothing for most decoders.
Decoders that build their frames by hand, v4l2m2m and rkmpp, never see
it, and the container fallback in fix_image_params() is all they get.
This also matches demux_mkv, which fills the field from StereoMode.
@kasper93
kasper93 merged commit 2a4eb80 into mpv-player:master Sep 23, 2026
30 checks passed
@kasper93
kasper93 deleted the s3d-lavf branch September 23, 2026 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant