Commit 648c7962 authored by Martin Storsjö's avatar Martin Storsjö Committed by Ronald S. Bultje
Browse files

ffplay: Don't assume ic->pb is non-null

This fixes crashes on exit when plaing some RealRTSP streams
(among other), e.g.
These crashes have been present since 3e68b3ba

Signed-off-by: default avatarRonald S. Bultje <>
parent eb1e7f78
......@@ -2568,9 +2568,9 @@ static int decode_thread(void *arg)
ret = av_read_frame(ic, pkt);
if (ret < 0) {
if (ret == AVERROR_EOF || ic->pb->eof_reached)
if (ret == AVERROR_EOF || (ic->pb && ic->pb->eof_reached))
if (ic->pb->error)
if (ic->pb && ic->pb->error)
SDL_Delay(100); /* wait for user event */
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