summaryrefslogtreecommitdiff
path: root/libavformat/flvdec.c
diff options
context:
space:
mode:
authorSteven Liu <lq@chinaffmpeg.org>2018-08-07 15:50:47 +0800
committerSteven Liu <lq@chinaffmpeg.org>2018-08-07 15:50:47 +0800
commit3b99bb38890375ebef2851a35bc048a37f6fd7f1 (patch)
tree5b87a9555bb2c7e3150fdf9deafe6073e064c951 /libavformat/flvdec.c
parentd37125fb910e466ab3e505afd0a687486f4e7c93 (diff)
avformat/flvdec: reindent code for previous commit
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r--libavformat/flvdec.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index ff91008371..ce3cac04ab 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -1252,19 +1252,19 @@ retry_duration:
leave:
last = avio_rb32(s->pb);
if (!flv->trust_datasize) {
- if (last != orig_size + 11 && last != orig_size + 10 &&
- !avio_feof(s->pb) &&
- (last != orig_size || !last) && last != flv->sum_flv_tag_size &&
- !flv->broken_sizes) {
- av_log(s, AV_LOG_ERROR, "Packet mismatch %d %d %d\n", last, orig_size + 11, flv->sum_flv_tag_size);
- avio_seek(s->pb, pos + 1, SEEK_SET);
- ret = resync(s);
- av_packet_unref(pkt);
- if (ret >= 0) {
- goto retry;
+ if (last != orig_size + 11 && last != orig_size + 10 &&
+ !avio_feof(s->pb) &&
+ (last != orig_size || !last) && last != flv->sum_flv_tag_size &&
+ !flv->broken_sizes) {
+ av_log(s, AV_LOG_ERROR, "Packet mismatch %d %d %d\n", last, orig_size + 11, flv->sum_flv_tag_size);
+ avio_seek(s->pb, pos + 1, SEEK_SET);
+ ret = resync(s);
+ av_packet_unref(pkt);
+ if (ret >= 0) {
+ goto retry;
+ }
}
}
- }
return ret;
}