diff options
author | Andrew Gallatin <gallatin@myri.com> | 2013-01-25 10:59:25 -0500 |
---|---|---|
committer | S. Davilla <davilla@4pi.com> | 2013-02-19 11:14:22 -0500 |
commit | fa7af0a9bb9e513620ef1ecd3e21ae0fd7549930 (patch) | |
tree | dc642a8487a6f0c00769a1d2831c7139ea09550a | |
parent | 2b44412cb860fc4ae5ab10a922a8f9e97df3daf7 (diff) |
Merge ffmpeg fix for sagetv recordings from upstream
> commit c071b006436d663b977068f8d23cbc061f40491f
> Author: Michael Niedermayer <michaelni@gmx.at>
> Date: Mon Jan 21 04:21:56 2013 +0100
>
> mpeg12demux: Fallback to startcode for stream type identification.
>
> Fixes Ticket2147
> Fixes SageTV support
>
> Based-on patch by Andrew Gallatin
> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | lib/ffmpeg/libavformat/mpeg.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/ffmpeg/libavformat/mpeg.c b/lib/ffmpeg/libavformat/mpeg.c index de2dd9dfbe..b9d2c78deb 100644 --- a/lib/ffmpeg/libavformat/mpeg.c +++ b/lib/ffmpeg/libavformat/mpeg.c @@ -453,7 +453,6 @@ static int mpegps_read_packet(AVFormatContext *s, } es_type = m->psm_es_type[startcode & 0xff]; - if(es_type > 0 && es_type != STREAM_TYPE_PRIVATE_DATA){ if(es_type == STREAM_TYPE_VIDEO_MPEG1){ codec_id = CODEC_ID_MPEG2VIDEO; type = AVMEDIA_TYPE_VIDEO; @@ -476,9 +475,6 @@ static int mpegps_read_packet(AVFormatContext *s, } else if(es_type == STREAM_TYPE_AUDIO_AC3){ codec_id = CODEC_ID_AC3; type = AVMEDIA_TYPE_AUDIO; - } else { - goto skip; - } } else if (startcode >= 0x1e0 && startcode <= 0x1ef) { static const unsigned char avs_seqh[4] = { 0, 0, 1, 0xb0 }; unsigned char buf[8]; |