revert lib/libdvbsub/dvbsubtitle.cpp

Origin commit data
------------------
Branch: ni/coolstream
Commit: 90db393eeb
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-03-25 (Sun, 25 Mar 2012)


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

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2012-03-25 16:34:19 +04:00
parent ab99adc7dd
commit 604b5e6187

View File

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