dvbsub: fix API use to new ffmpeg.

Origin commit data
------------------
Branch: ni/coolstream
Commit: ee52c56a6d
Author: [CST] Bas <bas@coolstreamtech.com>
Date: 2012-03-23 (Fri, 23 Mar 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Bas
2012-03-23 13:17:12 +08:00
committed by [CST] Focus
parent 3c4ff1fdfd
commit 1eb05746c2

View File

@@ -183,8 +183,8 @@ cDvbSubtitleConverter::cDvbSubtitleConverter(void)
dbgconverter("cDvbSubtitleConverter: unable to get dvb subtitle codec!\n");
return;
}
avctx = avcodec_alloc_context();
if (avcodec_open(avctx, avcodec) < 0)
avctx = avcodec_alloc_context3(avcodec);
if (avcodec_open2(avctx, avcodec, NULL) < 0)
dbgconverter("cDvbSubtitleConverter: unable to open codec !\n");
av_log_set_level(AV_LOG_PANIC);