diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2005-06-17 22:33:01 +0000 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2005-06-17 22:33:01 +0000 |
commit | 177772b4cec0994b403f8ce614033ffe7b4883f7 (patch) | |
tree | 992e5d1a259d260707969c6871eb338fd6f88ae8 /src/libmpeg2/decode.c | |
parent | 045cd4f4415ab9648298afd7d4c4a2b323ca7841 (diff) | |
download | xine-lib-177772b4cec0994b403f8ce614033ffe7b4883f7.tar.gz xine-lib-177772b4cec0994b403f8ce614033ffe7b4883f7.tar.bz2 |
Detect AFD information in MPEG2 streams and make the information available
to front-ends. (Reinhard Nissl)
gxine (CVS HEAD) is aware of this information.
CVS patchset: 7628
CVS date: 2005/06/17 22:33:01
Diffstat (limited to 'src/libmpeg2/decode.c')
-rw-r--r-- | src/libmpeg2/decode.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libmpeg2/decode.c b/src/libmpeg2/decode.c index c4b980f79..f8dcbea41 100644 --- a/src/libmpeg2/decode.c +++ b/src/libmpeg2/decode.c @@ -927,4 +927,11 @@ static void process_userdata(mpeg2dec_t *mpeg2dec, uint8_t *buffer) mpeg2dec->cc_dec->decode_data(mpeg2dec->cc_dec, &buf); } } + /* check Active Format Description ETSI TS 101 154 V1.5.1 */ + else if (buffer[0] == 0x44 && buffer[1] == 0x54 && buffer[2] == 0x47 && buffer[3] == 0x31) + { + int afd = (buffer[4] & 0x40) ? (buffer[5] & 0x0f) : -1; + _x_stream_info_set(mpeg2dec->stream, XINE_STREAM_INFO_VIDEO_AFD, afd); + + } } |