summaryrefslogtreecommitdiff
path: root/libavcodec/flvdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/flvdec.c')
-rw-r--r--libavcodec/flvdec.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/libavcodec/flvdec.c b/libavcodec/flvdec.c
index 3405058bca..0a6f268579 100644
--- a/libavcodec/flvdec.c
+++ b/libavcodec/flvdec.c
@@ -1,5 +1,6 @@
/*
* FLV decoding.
+ *
* This file is part of Libav.
*
* Libav is free software; you can redistribute it and/or
@@ -17,21 +18,21 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "mpegvideo.h"
-#include "h263.h"
-#include "flv.h"
#include "libavutil/imgutils.h"
+#include "flv.h"
+#include "h263.h"
+#include "mpegvideo.h"
+
void ff_flv2_decode_ac_esc(GetBitContext *gb, int *level, int *run, int *last)
{
int is11 = get_bits1(gb);
*last = get_bits1(gb);
*run = get_bits(gb, 6);
- if (is11) {
+ if (is11)
*level = get_sbits(gb, 11);
- } else {
+ else
*level = get_sbits(gb, 7);
- }
}
int ff_flv_decode_picture_header(MpegEncContext *s)
@@ -128,8 +129,6 @@ AVCodec ff_flv_decoder = {
.close = ff_h263_decode_end,
.decode = ff_h263_decode_frame,
.capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1,
- .pix_fmts = (const enum AVPixelFormat[]) {
- AV_PIX_FMT_YUV420P,
- AV_PIX_FMT_NONE
- },
+ .pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P,
+ AV_PIX_FMT_NONE },
};