From e61973db6c0111f39f945337aba6174f1ee5e6ba Mon Sep 17 00:00:00 2001 From: Peter Ross Date: Sun, 30 Mar 2014 12:41:01 +1100 Subject: avformat/mpegtsenc: move startcode validity check to ff_check_h264_startcode Signed-off-by: Peter Ross Signed-off-by: Michael Niedermayer --- libavformat/mpegts.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libavformat/mpegts.h') diff --git a/libavformat/mpegts.h b/libavformat/mpegts.h index 4d702a2cae..d7a9f03d6d 100644 --- a/libavformat/mpegts.h +++ b/libavformat/mpegts.h @@ -105,4 +105,10 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type Mp4Descr *mp4_descr, int mp4_descr_count, int pid, MpegTSContext *ts); +/** + * Check presence of H264 startcode + * @return <0 to stop processing + */ +int ff_check_h264_startcode(AVFormatContext *s, const AVStream *st, const AVPacket *pkt); + #endif /* AVFORMAT_MPEGTS_H */ -- cgit v1.2.3