[PATCH 12/18] libmpcodecs/ve_lavc: use AVFrame.flags instead of removed fields
Nicolas George <[email protected]> Tue, 28 Jul 2026 20:15:08 +0200
| Newsgroups | gmane.comp.video.mplayer.devel |
|---|---|
| Message-ID | <[email protected]> |
---
libmpcodecs/ve_lavc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libmpcodecs/ve_lavc.c b/libmpcodecs/ve_lavc.c
index 6581503a7..6ab47a728 100644
--- a/libmpcodecs/ve_lavc.c
+++ b/libmpcodecs/ve_lavc.c
@@ -722,12 +722,12 @@ static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts, double
if(lavc_param_interlaced_dct){
if((mpi->fields & MP_IMGFIELD_ORDERED) && (mpi->fields & MP_IMGFIELD_INTERLACED))
- pic->top_field_first= !!(mpi->fields & MP_IMGFIELD_TOP_FIRST);
+ pic->flags |= !!(mpi->fields & MP_IMGFIELD_TOP_FIRST) ? AV_FRAME_FLAG_TOP_FIELD_FIRST : 0;
else
- pic->top_field_first= 1;
+ pic->flags |= AV_FRAME_FLAG_TOP_FIELD_FIRST;
if(lavc_param_top!=-1)
- pic->top_field_first= lavc_param_top;
+ pic->flags |= lavc_param_top ? AV_FRAME_FLAG_TOP_FIELD_FIRST : 0;
}
return encode_frame(vf, pic, pts) >= 0;
--
2.53.0
_______________________________________________
MPlayer-dev-eng mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo/%(_internal_name)s