51,6 → 51,7 |
int64_t stream_duration; |
|
int threads_running = DECODER_THREAD; |
mutex_t driver_lock; |
|
extern double audio_base; |
|
109,8 → 110,11 |
} |
else movie_file = file_name; |
|
// __asm__ __volatile__("int3"); |
|
stream_duration = pFormatCtx->duration; |
|
printf("duration %f\n", (double)stream_duration); |
// Find the first video stream |
videoStream=-1; |
audioStream=-1; |
168,6 → 172,7 |
|
// printf("ctx->pix_fmt %d\n", pCodecCtx->pix_fmt); |
|
mutex_init(&driver_lock); |
mutex_init(&q_video.lock); |
mutex_init(&q_audio.lock); |
|
240,6 → 245,7 |
if(astream.lock.handle) |
mutex_destroy(&astream.lock); |
|
mutex_destroy(&driver_lock); |
mutex_destroy(&q_video.lock); |
mutex_destroy(&q_audio.lock); |
|