You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/h263dec: Move initializing qpel DSP context to mpeg4videodec.c
The MPEG-4 decoder is the only decoder based upon H.263 that supports quarterpel motion vectors. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -51,7 +51,6 @@
|
|||||||
#include "mpegvideo.h"
|
#include "mpegvideo.h"
|
||||||
#include "mpegvideodec.h"
|
#include "mpegvideodec.h"
|
||||||
#include "msmpeg4dec.h"
|
#include "msmpeg4dec.h"
|
||||||
#include "qpeldsp.h"
|
|
||||||
#include "thread.h"
|
#include "thread.h"
|
||||||
#include "wmv2dec.h"
|
#include "wmv2dec.h"
|
||||||
|
|
||||||
@@ -140,7 +139,6 @@ av_cold int ff_h263_decode_init(AVCodecContext *avctx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ff_h263dsp_init(&s->h263dsp);
|
ff_h263dsp_init(&s->h263dsp);
|
||||||
ff_qpeldsp_init(&s->qdsp);
|
|
||||||
ff_h263_decode_init_vlc();
|
ff_h263_decode_init_vlc();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@@ -43,6 +43,7 @@
|
|||||||
#include "h263data.h"
|
#include "h263data.h"
|
||||||
#include "h263dec.h"
|
#include "h263dec.h"
|
||||||
#include "profiles.h"
|
#include "profiles.h"
|
||||||
|
#include "qpeldsp.h"
|
||||||
#include "threadframe.h"
|
#include "threadframe.h"
|
||||||
#include "xvididct.h"
|
#include "xvididct.h"
|
||||||
#include "unary.h"
|
#include "unary.h"
|
||||||
@@ -3824,6 +3825,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
|
|||||||
|
|
||||||
avctx->chroma_sample_location = AVCHROMA_LOC_LEFT;
|
avctx->chroma_sample_location = AVCHROMA_LOC_LEFT;
|
||||||
|
|
||||||
|
ff_qpeldsp_init(&s->qdsp);
|
||||||
ff_mpeg4videodsp_init(&ctx->mdsp);
|
ff_mpeg4videodsp_init(&ctx->mdsp);
|
||||||
|
|
||||||
ff_thread_once(&init_static_once, mpeg4_init_static);
|
ff_thread_once(&init_static_once, mpeg4_init_static);
|
||||||
|
Reference in New Issue
Block a user