[MPlayer-cvslog] r34616 - trunk/sub/av_sub.c
reimar
subversion at mplayerhq.hu
Sat Jan 28 12:06:35 CET 2012
Author: reimar
Date: Sat Jan 28 12:06:35 2012
New Revision: 34616
Log:
Reuse init_avcodec function.
Modified:
trunk/sub/av_sub.c
Modified: trunk/sub/av_sub.c
==============================================================================
--- trunk/sub/av_sub.c Sat Jan 28 11:53:17 2012 (r34615)
+++ trunk/sub/av_sub.c Sat Jan 28 12:06:35 2012 (r34616)
@@ -21,6 +21,7 @@
#include "mp_msg.h"
#include "sub.h"
#include "spudec.h"
+#include "av_helpers.h"
#include "av_sub.h"
void reset_avsub(struct sh_sub *sh)
@@ -63,8 +64,7 @@ int decode_avsub(struct sh_sub *sh, uint
pkt.convergence_duration = (*endpts - *pts) * 1000;
if (!ctx) {
AVCodec *sub_codec;
- avcodec_init();
- avcodec_register_all();
+ init_avcodec();
ctx = avcodec_alloc_context();
sub_codec = avcodec_find_decoder(cid);
if (!ctx || !sub_codec || avcodec_open(ctx, sub_codec) < 0) {
More information about the MPlayer-cvslog
mailing list