If an audio track exists, but we receive no audio packets for that
track, this causes a condition that results in a NULL dereference.
Fixes https://github.com/HandBrake/HandBrake/issues/1358
// libav does not supply timestamps for wmapro audio (possibly others)
// if there is an input timestamp, initialize next_pts
if (pv->next_pts == (int64_t)AV_NOPTS_VALUE &&
- packet_info->pts != AV_NOPTS_VALUE)
+ packet_info != NULL &&
+ packet_info->pts != AV_NOPTS_VALUE)
{
pv->next_pts = packet_info->pts;
}