avplay: Don't try to scale timestamps if the tb isn't set
authorMartin Storsjö <martin@martin.st>
Fri, 6 Apr 2012 10:51:34 +0000 (13:51 +0300)
committerMartin Storsjö <martin@martin.st>
Fri, 6 Apr 2012 17:49:23 +0000 (20:49 +0300)
commit951e715cebfaffced7f13c1525771ff917fe1d38
tree209f77fa7c588454c1071a57b14a5a7d809b7db4
parent20234a4bd7e187ae31f9a66b5c40e98666bc30e4
avplay: Don't try to scale timestamps if the tb isn't set

If get_filtered_video_frame failed above, tb might not be
initialized at all, so don't scale using it.

This fixes cases where avplay could crash if aborting
avformat_find_stream_info with ctrl+c.

Signed-off-by: Martin Storsjö <martin@martin.st>
avplay.c