Skip to content

Commit

Permalink
remove unuse code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackarain committed Apr 16, 2012
1 parent 744acc8 commit 98f49ff
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions libav/src/avplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -1206,15 +1206,11 @@ void* audio_dec_thrd(void *param)
avplay *play = (avplay*) param;
int64_t v_start_time = 0;
int64_t a_start_time = 0;
int64_t diff_delay = 0;

if (play->m_video_st && play->m_audio_st)
{
v_start_time = play->m_video_st->start_time;
a_start_time = play->m_audio_st->start_time;

diff_delay = ((v_start_time != AV_NOPTS_VALUE) && (a_start_time != AV_NOPTS_VALUE)) ?
v_start_time - a_start_time : 0;
}

for (; !play->m_abort;)
Expand Down Expand Up @@ -1314,7 +1310,6 @@ void* video_dec_thrd(void *param)
int got_picture = 0;
int ret = 0;
avplay *play = (avplay*) param;
int64_t diff_delay = 0;
int64_t v_start_time = 0;
int64_t a_start_time = 0;

Expand All @@ -1324,9 +1319,6 @@ void* video_dec_thrd(void *param)
{
v_start_time = play->m_video_st->start_time;
a_start_time = play->m_audio_st->start_time;

diff_delay = ((v_start_time != AV_NOPTS_VALUE) && (a_start_time != AV_NOPTS_VALUE)) ?
v_start_time - a_start_time : 0;
}

for (; !play->m_abort;)
Expand Down

0 comments on commit 98f49ff

Please sign in to comment.