1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

ffprobe: reindent after previous commit

This commit is contained in:
Stefano Sabatini 2013-06-27 00:11:21 +02:00
parent a334b00cf6
commit 1fc626f8d0

View File

@ -1907,52 +1907,51 @@ static int probe_file(WriterContext *wctx, const char *filename)
if (ret < 0) if (ret < 0)
return ret; return ret;
/* todo: reindent */ nb_streams_frames = av_calloc(fmt_ctx->nb_streams, sizeof(*nb_streams_frames));
nb_streams_frames = av_calloc(fmt_ctx->nb_streams, sizeof(*nb_streams_frames)); nb_streams_packets = av_calloc(fmt_ctx->nb_streams, sizeof(*nb_streams_packets));
nb_streams_packets = av_calloc(fmt_ctx->nb_streams, sizeof(*nb_streams_packets)); selected_streams = av_calloc(fmt_ctx->nb_streams, sizeof(*selected_streams));
selected_streams = av_calloc(fmt_ctx->nb_streams, sizeof(*selected_streams));
for (i = 0; i < fmt_ctx->nb_streams; i++) { for (i = 0; i < fmt_ctx->nb_streams; i++) {
if (stream_specifier) { if (stream_specifier) {
ret = avformat_match_stream_specifier(fmt_ctx, ret = avformat_match_stream_specifier(fmt_ctx,
fmt_ctx->streams[i], fmt_ctx->streams[i],
stream_specifier); stream_specifier);
if (ret < 0) if (ret < 0)
goto end; goto end;
else else
selected_streams[i] = ret; selected_streams[i] = ret;
ret = 0; ret = 0;
} else { } else {
selected_streams[i] = 1; selected_streams[i] = 1;
}
} }
}
if (do_read_frames || do_read_packets) { if (do_read_frames || do_read_packets) {
if (do_show_frames && do_show_packets && if (do_show_frames && do_show_packets &&
wctx->writer->flags & WRITER_FLAG_PUT_PACKETS_AND_FRAMES_IN_SAME_CHAPTER) wctx->writer->flags & WRITER_FLAG_PUT_PACKETS_AND_FRAMES_IN_SAME_CHAPTER)
section_id = SECTION_ID_PACKETS_AND_FRAMES; section_id = SECTION_ID_PACKETS_AND_FRAMES;
else if (do_show_packets && !do_show_frames) else if (do_show_packets && !do_show_frames)
section_id = SECTION_ID_PACKETS; section_id = SECTION_ID_PACKETS;
else // (!do_show_packets && do_show_frames) else // (!do_show_packets && do_show_frames)
section_id = SECTION_ID_FRAMES; section_id = SECTION_ID_FRAMES;
if (do_show_frames || do_show_packets) if (do_show_frames || do_show_packets)
writer_print_section_header(wctx, section_id); writer_print_section_header(wctx, section_id);
read_packets(wctx, fmt_ctx); read_packets(wctx, fmt_ctx);
if (do_show_frames || do_show_packets) if (do_show_frames || do_show_packets)
writer_print_section_footer(wctx); writer_print_section_footer(wctx);
} }
if (do_show_streams) if (do_show_streams)
show_streams(wctx, fmt_ctx); show_streams(wctx, fmt_ctx);
if (do_show_chapters) if (do_show_chapters)
show_chapters(wctx, fmt_ctx); show_chapters(wctx, fmt_ctx);
if (do_show_format) if (do_show_format)
show_format(wctx, fmt_ctx); show_format(wctx, fmt_ctx);
end: end:
close_input_file(&fmt_ctx); close_input_file(&fmt_ctx);
av_freep(&nb_streams_frames); av_freep(&nb_streams_frames);
av_freep(&nb_streams_packets); av_freep(&nb_streams_packets);
av_freep(&selected_streams); av_freep(&selected_streams);
return ret; return ret;
} }