diff options
author | Sven Göthel <[email protected]> | 2024-01-28 08:48:35 +0100 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-01-28 08:48:35 +0100 |
commit | 0f30aa0995aed0afa610efd49ab8f7ea26fa6db0 (patch) | |
tree | a29011eff8e31a89a529ee54f3b5d3e483d25a65 /src | |
parent | 432339880fbf00d0003cd1ed4ac3c7d37d323c22 (diff) |
FFMPEGMediaPlayer (native): Set used sid to none if not selected (missed)
Diffstat (limited to 'src')
-rw-r--r-- | src/jogl/native/libav/ffmpeg_impl_template.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jogl/native/libav/ffmpeg_impl_template.c b/src/jogl/native/libav/ffmpeg_impl_template.c index e3a1590f4..93053e885 100644 --- a/src/jogl/native/libav/ffmpeg_impl_template.c +++ b/src/jogl/native/libav/ffmpeg_impl_template.c @@ -992,6 +992,9 @@ JNIEXPORT void JNICALL FF_FUNC(setStream0) if( AV_STREAM_ID_AUTO == pAV->vid ) { pAV->vid = AV_STREAM_ID_NONE; } + if( AV_STREAM_ID_AUTO == pAV->sid ) { + pAV->sid = AV_STREAM_ID_NONE; + } if( pAV->verbose ) { fprintf(stderr, "Found vid %d, aid %d, sid %d\n", pAV->vid, pAV->aid, pAV->sid); |