applehttp: Only check the discard flags if v->ctx actually is initialized
authorMartin Storsjö <martin@martin.st>
Mon, 11 Apr 2011 21:19:56 +0000 (00:19 +0300)
committerMartin Storsjö <martin@martin.st>
Wed, 13 Apr 2011 08:30:37 +0000 (11:30 +0300)
commita92a7ddc253a640aba974d859eab20d74cebb3e0
treeea258df95de693ee1ee813fcf0cad08c20e77214
parent4c362a5212cf16e888e0ef51c3d6b9866152ef5f
applehttp: Only check the discard flags if v->ctx actually is initialized

This code could be executed if the demuxer reads more than one
segment before returning from av_open_input_stream.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/applehttp.c