[FFmpeg-trac] #5614(avcodec:new): VDA output error and pixelation frames
FFmpeg
trac at avcodec.org
Tue Jun 7 16:39:14 CEST 2016
#5614: VDA output error and pixelation frames
------------------------------------+-----------------------------------
Reporter: niltsh | Owner:
Type: defect | Status: new
Priority: normal | Component: avcodec
Version: git-master | Resolution:
Keywords: VDA | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+-----------------------------------
Comment (by niltsh):
Just brainlessly tried the following patch, and it could fix the
pixelation issue.
But it has other error messages output.
------
the patch:
{{{
diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c
index 6f9a041..c483308 100644
--- a/libavcodec/h264_slice.c
+++ b/libavcodec/h264_slice.c
@@ -1298,7 +1298,7 @@ int ff_h264_decode_slice_header(H264Context *h,
H264SliceContext *sl)
|| h->mb_height != h->sps.mb_height * (2 -
h->sps.frame_mbs_only_flag)
));
if (h->avctx->pix_fmt == AV_PIX_FMT_NONE
- || (non_j_pixfmt(h->avctx->pix_fmt) !=
non_j_pixfmt(get_pixel_format(h, 0))))
+ || (non_j_pixfmt(h->avctx->pix_fmt) !=
non_j_pixfmt(get_pixel_format(h, 1))))
must_reinit = 1;
if (first_slice && av_cmp_q(h->sps.sar,
h->avctx->sample_aspect_ratio))
}}}
-----------
the output with the patch:
{{{
[h264_vda @ 0x7ffb1c038800] Reinit context to 1280x544, pix_fmt: vda_vld
Last message repeated 1 times
[h264_vda @ 0x7ffb1c038800] co located POCs unavailable
[h264_vda @ 0x7ffb1c038800] co located POCs unavailable 0B f=0/1
Last message repeated 1 times
[h264_vda @ 0x7ffb1c038800] co located POCs unavailable 0B f=0/1
Last message repeated 4 times
[h264_vda @ 0x7ffb1c038800] Reinit context to 1280x544, pix_fmt: vda_vld
Last message repeated 1 times
[h264_vda @ 0x7ffb1c038800] Reinit context to 1280x544, pix_fmt: vda_vld
Last message repeated 1 times
[h264_vda @ 0x7ffb1c038800] Reinit context to 1280x544, pix_fmt: vda_vld
Last message repeated 1 times
[h264_vda @ 0x7ffb1c038800] co located POCs unavailable
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5614#comment:7>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list