diff options
Diffstat (limited to 'libmpcodecs/vd_ffmpeg.c')
-rw-r--r-- | libmpcodecs/vd_ffmpeg.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c index 21c24a2702..d36e4122a0 100644 --- a/libmpcodecs/vd_ffmpeg.c +++ b/libmpcodecs/vd_ffmpeg.c @@ -277,19 +277,6 @@ static int init(sh_video_t *sh) "libavcodec.size: %d x %d\n", avctx->width, avctx->height); switch (sh->format) { case mmioFOURCC('S','V','Q','3'): - /* SVQ3 extradata can show up as sh->ImageDesc if demux_mov is used, or - * in the phony AVI header if demux_lavf is used. The first case is - * handled here; the second case falls through to the next section. */ - if (sh->ImageDesc) { - avctx->extradata_size = (*(int *)sh->ImageDesc) - sizeof(int); - avctx->extradata = av_mallocz(avctx->extradata_size + - FF_INPUT_BUFFER_PADDING_SIZE); - memcpy(avctx->extradata, ((int *)sh->ImageDesc) + 1, - avctx->extradata_size); - break; - } - /* fallthrough */ - case mmioFOURCC('A','V','R','n'): case mmioFOURCC('M','J','P','G'): /* AVRn stores huffman table in AVI header */ @@ -419,14 +406,6 @@ static int init_vo(sh_video_t *sh, enum PixelFormat pix_fmt) width = avctx->width; height = avctx->height; - // HACK! - // if sh->ImageDesc is non-NULL, it means we decode QuickTime(tm) video. - // use dimensions from BIH to avoid black borders at the right and bottom. - if (sh->bih && sh->ImageDesc) { - width = sh->bih->biWidth >> avctx->lowres; - height = sh->bih->biHeight >> avctx->lowres; - } - /* Reconfiguring filter/VO chain may invalidate direct rendering buffers * we have allocated for libavcodec (including the VDPAU HW decoding * case). Is it guaranteed that the code below only triggers in a situation |