fftools/ffplay: reindent and some minor cosmetics
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
@@ -654,7 +654,6 @@ static int decoder_decode_frame(Decoder *d, AVFrame *frame, AVSubtitle *sub) {
|
||||
av_packet_unref(d->pkt);
|
||||
} while (1);
|
||||
|
||||
{
|
||||
if (d->avctx->codec_type == AVMEDIA_TYPE_SUBTITLE) {
|
||||
int got_frame = 0;
|
||||
ret = avcodec_decode_subtitle2(d->avctx, sub, &got_frame, d->pkt);
|
||||
@@ -676,7 +675,6 @@ static int decoder_decode_frame(Decoder *d, AVFrame *frame, AVSubtitle *sub) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void decoder_destroy(Decoder *d) {
|
||||
@@ -2968,15 +2966,12 @@ static int read_thread(void *arg)
|
||||
av_log(NULL, AV_LOG_ERROR,
|
||||
"%s: error while seeking\n", is->ic->url);
|
||||
} else {
|
||||
if (is->audio_stream >= 0) {
|
||||
if (is->audio_stream >= 0)
|
||||
packet_queue_flush(&is->audioq);
|
||||
}
|
||||
if (is->subtitle_stream >= 0) {
|
||||
if (is->subtitle_stream >= 0)
|
||||
packet_queue_flush(&is->subtitleq);
|
||||
}
|
||||
if (is->video_stream >= 0) {
|
||||
if (is->video_stream >= 0)
|
||||
packet_queue_flush(&is->videoq);
|
||||
}
|
||||
if (is->seek_flags & AVSEEK_FLAG_BYTE) {
|
||||
set_clock(&is->extclk, NAN, 0);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user