Commit 0b7bd67c authored by michael's avatar michael

Fixes NULL pointer dereference CID66


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13483 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8b58b532
......@@ -650,6 +650,9 @@ static int avi_read_packet(AVFormatContext *s, AVPacket *pkt)
best_stream_index= i;
}
}
if(!best_st)
return -1;
best_ast = best_st->priv_data;
best_ts= av_rescale(best_ts, best_st->time_base.den, AV_TIME_BASE * (int64_t)best_st->time_base.num); //FIXME a little ugly
if(best_ast->remaining)
......
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