]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/flvdec.c
hevc: store the escaped/raw bitstream in HEVCNAL
[ffmpeg] / libavcodec / flvdec.c
index 3405058bca87474c8094d5acad14c216838e65ef..0a6f26857988f63210d71fb200a6ef2f9087a1e3 100644 (file)
@@ -1,5 +1,6 @@
 /*
  * FLV decoding.
+ *
  * This file is part of Libav.
  *
  * Libav is free software; you can redistribute it and/or
  * 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 },
 };