mxfdec: fix frame height computation for mixed fields layout

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/30/merge
Matthieu Bouron 13 years ago committed by Michael Niedermayer
parent 965b807278
commit f452d6c34d
  1. 3
      libavformat/mxfdec.c

@ -1517,8 +1517,9 @@ static int mxf_parse_structural_metadata(MXFContext *mxf)
break; /* The correct thing to do here is fall through, but by breaking we might be break; /* The correct thing to do here is fall through, but by breaking we might be
able to decode some streams at half the vertical resolution, rather than not al all. able to decode some streams at half the vertical resolution, rather than not al all.
It's also for compatibility with the old behavior. */ It's also for compatibility with the old behavior. */
case SeparateFields:
case MixedFields: case MixedFields:
break;
case SeparateFields:
st->codec->height *= 2; /* Turn field height into frame height. */ st->codec->height *= 2; /* Turn field height into frame height. */
break; break;
default: default:

Loading…
Cancel
Save