Slight cleanups.

This commit is contained in:
Themaister 2011-10-07 01:21:54 +02:00
parent d26dd9d9e7
commit ef04f199d5

View File

@ -502,13 +502,10 @@ static int ffemu_push_audio_thread(ffemu_t *handle, const struct ffemu_audio_dat
pkt.size = out_size;
#if 0
if (handle->audio.codec->coded_frame && handle->audio.codec->coded_frame->pts != AV_NOPTS_VALUE)
pkt.pts = av_rescale_q(handle->audio.codec->coded_frame->pts, handle->audio.codec->time_base, handle->muxer.astream->time_base);
else
pkt.pts = av_rescale_q(handle->audio.frame_cnt, handle->audio.codec->time_base, handle->muxer.astream->time_base);
#endif
pkt.pts = av_rescale_q(handle->audio.frame_cnt, handle->audio.codec->time_base, handle->muxer.astream->time_base);
pkt.flags |= AV_PKT_FLAG_KEY;
handle->audio.frames_in_buffer = 0;