summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-01-21 23:02:21 +0000
committerMark Thompson <sw@jkqxz.net>2017-01-22 00:07:47 +0000
commitd40a1ae7ecfe17b355c194d258d037385ceab2ad (patch)
treeafad92318ef27079d1a51d921abeb273c112621f
parent61164112a51ca0a3c71d967894cb5c5b03c69183 (diff)
downloadffmpeg-streaming-d40a1ae7ecfe17b355c194d258d037385ceab2ad.zip
ffmpeg-streaming-d40a1ae7ecfe17b355c194d258d037385ceab2ad.tar.gz
vaapi_mpeg4: Restore changes overwritten by merge
From 2aa8e33d7d86fbc4a4060c363a5733067c160654.
-rw-r--r--libavcodec/vaapi_mpeg4.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/libavcodec/vaapi_mpeg4.c b/libavcodec/vaapi_mpeg4.c
index 462233c..b00f73d 100644
--- a/libavcodec/vaapi_mpeg4.c
+++ b/libavcodec/vaapi_mpeg4.c
@@ -156,26 +156,15 @@ static int vaapi_mpeg4_decode_slice(AVCodecContext *avctx, const uint8_t *buffer
VASliceParameterBufferMPEG4 slice_param;
int err;
- /* video_plane_with_short_video_header() contains all GOBs
- * in-order, and this is what VA API (Intel backend) expects: only
- * a single slice param. So fake macroblock_number for Libav so
- * that we don't call vaapi_mpeg4_decode_slice() again
- */
- if (avctx->codec->id == AV_CODEC_ID_H263)
- size = s->gb.buffer_end - buffer;
-
slice_param = (VASliceParameterBufferMPEG4) {
.slice_data_size = size,
.slice_data_offset = 0,
.slice_data_flag = VA_SLICE_DATA_FLAG_ALL,
.macroblock_offset = get_bits_count(&s->gb) % 8,
- .macroblock_number = s->mb_y * s->mb_width + s->mb_x,
+ .macroblock_number = 0,
.quant_scale = s->qscale,
};
- if (avctx->codec->id == AV_CODEC_ID_H263)
- s->mb_y = s->mb_height;
-
err = ff_vaapi_decode_make_slice_buffer(avctx, pic,
&slice_param, sizeof(slice_param),
buffer, size);
OpenPOWER on IntegriCloud