Commit 28c57751 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge remote-tracking branch 'qatar/master'

* qatar/master:
  mpegts: Make sure we don't return uninitialized packets
  gitignore: replace library catch-all pattern by more specific patterns

Conflicts:
	.gitignore
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 18c6bd09 df8aa459
.config .config
.version .version
*.a
*.o *.o
*.d *.d
*.exe *.exe
*.ho *.ho
*.pc
*.so
*.so.*
*.ver
*-example *-example
*-test *-test
*_g *_g
...@@ -29,16 +34,7 @@ libavcodec/*_tablegen ...@@ -29,16 +34,7 @@ libavcodec/*_tablegen
libavcodec/*_tables.c libavcodec/*_tables.c
libavcodec/*_tables.h libavcodec/*_tables.h
libavcodec/codec_names.h libavcodec/codec_names.h
libavcodec/libavcodec*
libavcore/libavcore*
libavdevice/libavdevice*
libavfilter/libavfilter*
libavformat/libavformat*
libavutil/avconfig.h libavutil/avconfig.h
libavutil/libavutil*
libpostproc/libpostproc*
libswresample/libswresample*
libswscale/libswscale*
tests/audiogen tests/audiogen
tests/base64 tests/base64
tests/data tests/data
......
...@@ -2074,6 +2074,7 @@ static int mpegts_read_packet(AVFormatContext *s, ...@@ -2074,6 +2074,7 @@ static int mpegts_read_packet(AVFormatContext *s,
MpegTSContext *ts = s->priv_data; MpegTSContext *ts = s->priv_data;
int ret, i; int ret, i;
pkt->size = -1;
ts->pkt = pkt; ts->pkt = pkt;
ret = handle_packets(ts, 0); ret = handle_packets(ts, 0);
if (ret < 0) { if (ret < 0) {
...@@ -2091,6 +2092,8 @@ static int mpegts_read_packet(AVFormatContext *s, ...@@ -2091,6 +2092,8 @@ static int mpegts_read_packet(AVFormatContext *s,
} }
} }
if (!ret && pkt->size < 0)
ret = AVERROR(EINTR);
return ret; return ret;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment