diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-04-28 00:44:52 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-04-28 00:44:52 +0400 |
commit | 28c5775183e528c24a597b01497159d9d4c5e2a6 (patch) | |
tree | 870bb374d8bb85d8de2747554517e45d4fe45a73 /libavformat/mpegts.c | |
parent | 18c6bd098baba1ace8fea946e4bc0c60098f49d4 (diff) | |
parent | df8aa4598c7cc1c2f863f6fc6b2d4b3e6dc7345e (diff) |
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: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r-- | libavformat/mpegts.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 12b289340f..4489a58e50 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -2074,6 +2074,7 @@ static int mpegts_read_packet(AVFormatContext *s, MpegTSContext *ts = s->priv_data; int ret, i; + pkt->size = -1; ts->pkt = pkt; ret = handle_packets(ts, 0); if (ret < 0) { @@ -2091,6 +2092,8 @@ static int mpegts_read_packet(AVFormatContext *s, } } + if (!ret && pkt->size < 0) + ret = AVERROR(EINTR); return ret; } |