Skip to content

Commit

Permalink
Merge commit '9ea78fd00a49f0691c1a5134eb59d4e5bb380a2a'
Browse files Browse the repository at this point in the history
* commit '9ea78fd00a49f0691c1a5134eb59d4e5bb380a2a':
  rtpdec: Always check if we have the next packet queued

Merged-by: Clément Bœsch <[email protected]>
  • Loading branch information
ubitux committed Jun 21, 2016
2 parents 91450cd + 9ea78fd commit 4873952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavformat/rtpdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ int ff_rtp_parse_packet(RTPDemuxContext *s, AVPacket *pkt,
return -1;
rv = rtp_parse_one_packet(s, pkt, bufptr, len);
s->prev_ret = rv;
while (rv == AVERROR(EAGAIN) && has_next_packet(s))
while (rv < 0 && has_next_packet(s))
rv = rtp_parse_queued_packet(s, pkt);
return rv ? rv : has_next_packet(s);
}
Expand Down

0 comments on commit 4873952

Please sign in to comment.