Skip to content

Commit

Permalink
dvdplayer: adapt matroshka ssa subs to ffmpeg 2.4 api change
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Sep 22, 2014
1 parent fa8281b commit 60a8b44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions xbmc/cores/dvdplayer/DVDCodecs/DVDFactoryCodec.cpp
Expand Up @@ -327,6 +327,7 @@ CDVDOverlayCodec* CDVDFactoryCodec::CreateOverlayCodec( CDVDStreamInfo &hint )
break;

case AV_CODEC_ID_SSA:
case AV_CODEC_ID_ASS:
pCodec = OpenCodec(new CDVDOverlayCodecSSA(), hint, options);
if( pCodec ) return pCodec;

Expand Down
Expand Up @@ -45,7 +45,8 @@ CDVDOverlayCodecSSA::~CDVDOverlayCodecSSA()

bool CDVDOverlayCodecSSA::Open(CDVDStreamInfo &hints, CDVDCodecOptions &options)
{
if(hints.codec != AV_CODEC_ID_SSA)
if(hints.codec != AV_CODEC_ID_SSA &&
hints.codec != AV_CODEC_ID_ASS)
return false;

Dispose();
Expand Down

0 comments on commit 60a8b44

Please sign in to comment.