On Wed, May 16, 2018 at 9:19 AM, Haihao Xiang <haihao.xi...@intel.com> wrote: > Signed-off-by: Haihao Xiang <haihao.xi...@intel.com> > --- > libavcodec/hevcdec.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c > index c8877626d2..13d868bb4f 100644 > --- a/libavcodec/hevcdec.c > +++ b/libavcodec/hevcdec.c > @@ -344,6 +344,11 @@ static void export_stream_params(AVCodecContext *avctx, > const HEVCParamSets *ps, > avctx->colorspace = AVCOL_SPC_UNSPECIFIED; > } > > + if (sps->vui.chroma_loc_info_present_flag) > + avctx->chroma_sample_location = > sps->vui.chroma_sample_loc_type_top_field + 1; > + else > + avctx->chroma_sample_location = AVCHROMA_LOC_UNSPECIFIED; >
This change is incomplete, refer to the patch I proposed earlier: http://ffmpeg.org/pipermail/ffmpeg-devel/2018-April/228100.html - Hendrik _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel