[FFmpeg-devel] [PATCH 2/2] avcodec/hevc: set field_order=progressive when SPS makes it straightforward

Nuo Mi nuomi2021 at gmail.com
Sat Jan 30 05:54:48 EET 2021


Hi Nicolas,
One related question, do we have a deinterlace filter to handle hevc SAFF?
thanks

On Sat, Jan 30, 2021 at 1:24 AM Nicolas Gaullier <nicolas.gaullier at cji.paris>
wrote:

> ---
>  libavcodec/hevcdec.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c
> index 92eb888033..2eaa683399 100644
> --- a/libavcodec/hevcdec.c
> +++ b/libavcodec/hevcdec.c
> @@ -330,6 +330,8 @@ static void export_stream_params(HEVCContext *s, const
> HEVCSPS *sps)
>      avctx->has_b_frames        = sps->temporal_layer[sps->max_sub_layers
> - 1].num_reorder_pics;
>      avctx->profile             = sps->ptl.general_ptl.profile_idc;
>      avctx->level               = sps->ptl.general_ptl.level_idc;
> +    if (sps->ptl.general_ptl.progressive_source_flag &&
> !sps->ptl.general_ptl.interlaced_source_flag)
> +        avctx->field_order     = AV_FIELD_PROGRESSIVE;
>
>      ff_set_sar(avctx, sps->vui.sar);
>
> --
> 2.27.0.windows.1
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list