rdt: Check the return value of avformat_open
authorMartin Storsjö <martin@martin.st>
Sun, 6 Nov 2011 21:51:19 +0000 (23:51 +0200)
committerMartin Storsjö <martin@martin.st>
Mon, 7 Nov 2011 09:23:57 +0000 (11:23 +0200)
commited307e2659f2db81a434afece905383fdceb9b6e
tree20cb8f1d13c1c7dbca575307a59595bcc16be06f
parent4b3dc857e416f9ec187cb14fd133226456ba7f91
rdt: Check the return value of avformat_open

If it failed, return NULL. This avoids trying to use an
half-initialized RDTDemuxContext.

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