Mercurial > mplayer.hg
comparison mplayer.c @ 37041:8aa4f25a4c17
mplayer: Fix potential NULL dereference.
author | reimar |
---|---|
date | Sun, 06 Apr 2014 18:46:45 +0000 |
parents | cbaa08dbc9aa |
children | d4fbf2eb4a04 |
comparison
equal
deleted
inserted
replaced
37040:4764e4e58621 | 37041:8aa4f25a4c17 |
---|---|
546 } | 546 } |
547 if (start_pts != MP_NOPTS_VALUE) | 547 if (start_pts != MP_NOPTS_VALUE) |
548 mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_START_TIME=%.2f\n", start_pts); | 548 mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_START_TIME=%.2f\n", start_pts); |
549 else | 549 else |
550 mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_START_TIME=unknown\n"); | 550 mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_START_TIME=unknown\n"); |
551 mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_LENGTH=%.2f\n", demuxer_get_time_length(mpctx->demuxer)); | 551 mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_LENGTH=%.2f\n", mpctx->demuxer ? demuxer_get_time_length(mpctx->demuxer) : 0); |
552 mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_SEEKABLE=%d\n", | 552 mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_SEEKABLE=%d\n", |
553 mpctx->stream->seek && (!mpctx->demuxer || mpctx->demuxer->seekable)); | 553 mpctx->stream->seek && (!mpctx->demuxer || mpctx->demuxer->seekable)); |
554 if (mpctx->demuxer) { | 554 if (mpctx->demuxer) { |
555 if (mpctx->demuxer->num_chapters == 0) | 555 if (mpctx->demuxer->num_chapters == 0) |
556 stream_control(mpctx->demuxer->stream, STREAM_CTRL_GET_NUM_CHAPTERS, &mpctx->demuxer->num_chapters); | 556 stream_control(mpctx->demuxer->stream, STREAM_CTRL_GET_NUM_CHAPTERS, &mpctx->demuxer->num_chapters); |