summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libmpeg2/decode.c7
-rw-r--r--src/xine-engine/xine_interface.c3
2 files changed, 9 insertions, 1 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);
+
+ }
}
diff --git a/src/xine-engine/xine_interface.c b/src/xine-engine/xine_interface.c
index 3fb09df76..743dbd3ee 100644
--- a/src/xine-engine/xine_interface.c
+++ b/src/xine-engine/xine_interface.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xine_interface.c,v 1.88 2005/04/20 11:19:35 holstsn Exp $
+ * $Id: xine_interface.c,v 1.89 2005/06/17 22:33:02 dsalt Exp $
*
* convenience/abstraction layer, functions to implement
* libxine's public interface
@@ -671,6 +671,7 @@ uint32_t xine_get_stream_info (xine_stream_t *stream, int info) {
case XINE_STREAM_INFO_IGNORE_AUDIO:
case XINE_STREAM_INFO_IGNORE_SPU:
case XINE_STREAM_INFO_VIDEO_HAS_STILL:
+ case XINE_STREAM_INFO_VIDEO_AFD:
return _x_stream_info_get_public(stream, info);
case XINE_STREAM_INFO_MAX_AUDIO_CHANNEL: