mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
parse mpeg2 progressive frame flag
Originally committed as revision 16889 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
7c7c1a76db
commit
52e5cd2b10
@ -58,6 +58,7 @@ typedef struct {
|
||||
const UID *codec_ul;
|
||||
int64_t duration;
|
||||
int order; ///< interleaving order if dts are equal
|
||||
int interlaced; ///< wether picture is interlaced
|
||||
} MXFStreamContext;
|
||||
|
||||
typedef struct {
|
||||
@ -810,6 +811,8 @@ static int mxf_parse_mpeg2_frame(AVFormatContext *s, AVStream *st, AVPacket *pkt
|
||||
if (i + 2 < pkt->size && (pkt->data[i+1] & 0xf0) == 0x10) { // seq ext
|
||||
st->codec->profile = pkt->data[i+1] & 0x07;
|
||||
st->codec->level = pkt->data[i+2] >> 4;
|
||||
} else if (i + 5 < pkt->size && (pkt->data[i+1] & 0xf0) == 0x80) { // pict coding ext
|
||||
sc->interlaced = !(pkt->data[i+5] & 0x80); // progressive frame
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user