Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't utilize rect.flags for an external ffmpeg that doesn't support it

Modifies the PGS Forced Subtitles Fix recently merged under the commit
below so that users who can't upgrade their external ffmeg don't utilize
the new objects.

e6f195c
  • Loading branch information...
commit 1ecc756cc285b6adaafc7530bcda8ba417a30bc3 1 parent dc8f921
@GreenOnyx GreenOnyx authored
View
5 xbmc/cores/dvdplayer/DVDCodecs/Overlay/DVDOverlayCodecFFmpeg.cpp
@@ -259,7 +259,10 @@ CDVDOverlay* CDVDOverlayCodecFFmpeg::GetOverlay()
overlay->y = rect.y;
overlay->width = rect.w;
overlay->height = rect.h;
- overlay->bForced = rect.flags;
+
+#if (!defined USE_EXTERNAL_FFMPEG) || (LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(54,71,100))
+ overlay->bForced = rect.flags != 0;
+#endif
int right = overlay->x + overlay->width;
int bottom = overlay->y + overlay->height;
Please sign in to comment.
Something went wrong with that request. Please try again.