diff options
author | wm4 <wm4@nowhere> | 2015-04-23 22:06:14 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-04-23 22:06:14 +0200 |
commit | 1419aac22aa4b1ce34ee7962822ae0d52fbf454c (patch) | |
tree | 7b768bebc4fdde51ee0c8b3d8beb625e65eba817 /video/mp_image.c | |
parent | 994438dee5704c18d86671c62b8497457a3a00af (diff) | |
download | mpv-1419aac22aa4b1ce34ee7962822ae0d52fbf454c.tar.bz2 mpv-1419aac22aa4b1ce34ee7962822ae0d52fbf454c.tar.xz |
mp_image: remove some unused interlacing flags
MP_IMGFIELD_TOP/MP_IMGFIELD_BOTTOM were completely unused, and
MP_IMGFIELD_ORDERED was always set (even though vf_vdpaupp.c strangely
checked for the latter).
Diffstat (limited to 'video/mp_image.c')
-rw-r--r-- | video/mp_image.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/video/mp_image.c b/video/mp_image.c index e97ca1564b..dc305a4b63 100644 --- a/video/mp_image.c +++ b/video/mp_image.c @@ -625,14 +625,13 @@ void mp_image_copy_fields_from_av_frame(struct mp_image *dst, dst->pict_type = src->pict_type; - dst->fields = MP_IMGFIELD_ORDERED; + dst->fields = 0; if (src->interlaced_frame) dst->fields |= MP_IMGFIELD_INTERLACED; if (src->top_field_first) dst->fields |= MP_IMGFIELD_TOP_FIRST; if (src->repeat_pict == 1) dst->fields |= MP_IMGFIELD_REPEAT_FIRST; - } // Copy properties and data of the mp_image into the AVFrame, without taking |