Output MPEG-TS stream identifiers.
with changes by michael to simplify API
This commit is contained in:
parent
8381ab1437
commit
fa12fb3b00
@ -606,6 +606,13 @@ typedef struct AVStream {
|
|||||||
*/
|
*/
|
||||||
int codec_info_nb_frames;
|
int codec_info_nb_frames;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Stream Identifier
|
||||||
|
* This is the MPEG-TS stream identifier +1
|
||||||
|
* 0 means unknown
|
||||||
|
*/
|
||||||
|
int stream_identifier;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stream informations used internally by av_find_stream_info()
|
* Stream informations used internally by av_find_stream_info()
|
||||||
*/
|
*/
|
||||||
|
@ -994,6 +994,9 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type
|
|||||||
stream_type == STREAM_TYPE_PRIVATE_DATA)
|
stream_type == STREAM_TYPE_PRIVATE_DATA)
|
||||||
mpegts_find_stream_type(st, st->codec->codec_tag, REGD_types);
|
mpegts_find_stream_type(st, st->codec->codec_tag, REGD_types);
|
||||||
break;
|
break;
|
||||||
|
case 0x52: /* stream identifier descriptor */
|
||||||
|
st->stream_identifier = 1 + get8(pp, desc_end);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user