summaryrefslogtreecommitdiff
path: root/src/libmpeg2/decode.c
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2005-06-17 22:33:01 +0000
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2005-06-17 22:33:01 +0000
commit177772b4cec0994b403f8ce614033ffe7b4883f7 (patch)
tree992e5d1a259d260707969c6871eb338fd6f88ae8 /src/libmpeg2/decode.c
parent045cd4f4415ab9648298afd7d4c4a2b323ca7841 (diff)
downloadxine-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.c7
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);
+
+ }
}