diff --git a/doc/APIchanges b/doc/APIchanges
index 45b38ee24ce909bda9b9fb02386825f69774a94b..4455fbfd4fe8a6d8bc83754b95de3b4d8fc91a75 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -15,9 +15,9 @@ libavutil:     2012-10-22
 
 API changes, most recent first:
 
-2014-08-04 - xxxxxxx - lavc 55.72.101 - avcodec.h
-2014-08-04 - xxxxxxx - lavu 52.95.100 - frame.h
-  Deprecate AVCodecContext.dtg_active_format and use side-data instead
+2014-08-04 - xxxxxxx - lavc 55.72.101 / 55.57.2 - avcodec.h
+2014-08-04 - xxxxxxx - lavu 52.95.100 / 53.20.0 - frame.h
+  Deprecate AVCodecContext.dtg_active_format and use side-data instead.
 
 2014-08-03 - xxxxxxx - lavc 55.72.100 - avcodec.h
   Add get_pixels() to AVDCT
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 8ba58516b4129f52005a0738779b85df80080b2f..efe94eeb6cb28d2442564f9b88fe759ea5d234dd 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -1698,7 +1698,7 @@ typedef struct AVCodecContext {
      *
      * - encoding: unused
      * - decoding: Set by decoder.
-     * @deprecated Deprecated in favour of AVSideData
+     * @deprecated Deprecated in favor of AVSideData
      */
     attribute_deprecated int dtg_active_format;
 #define FF_DTG_AFD_SAME         8
@@ -1708,7 +1708,7 @@ typedef struct AVCodecContext {
 #define FF_DTG_AFD_4_3_SP_14_9  13
 #define FF_DTG_AFD_16_9_SP_14_9 14
 #define FF_DTG_AFD_SP_4_3       15
-#endif
+#endif /* FF_API_AFD */
 
     /**
      * maximum motion estimation search range in subpel units
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c
index f4582ef1ec8e9517275ca971fc2734cee312c8d2..3b769dfb7705c640f3c084c45720d46619d820d0 100644
--- a/libavcodec/mpeg12dec.c
+++ b/libavcodec/mpeg12dec.c
@@ -1663,13 +1663,13 @@ static int mpeg_field_start(MpegEncContext *s, const uint8_t *buf, int buf_size)
         }
 
         if (s1->has_afd) {
-            AVFrameSideData *sd = av_frame_new_side_data(
-                s->current_picture_ptr->f, AV_FRAME_DATA_AFD,
-                1);
+            AVFrameSideData *sd =
+                av_frame_new_side_data(s->current_picture_ptr->f,
+                                       AV_FRAME_DATA_AFD, 1);
             if (!sd)
                 return AVERROR(ENOMEM);
 
-            *sd->data = s1->afd;
+            *sd->data   = s1->afd;
             s1->has_afd = 0;
         }
 
@@ -2278,7 +2278,7 @@ static void mpeg_decode_user_data(AVCodecContext *avctx,
 {
     Mpeg1Context *s = avctx->priv_data;
     const uint8_t *buf_end = p + buf_size;
-    Mpeg1Context *s1   = avctx->priv_data;
+    Mpeg1Context *s1 = avctx->priv_data;
 
     if (buf_size > 29){
         int i;
@@ -2307,9 +2307,9 @@ static void mpeg_decode_user_data(AVCodecContext *avctx,
                 return;
 #if FF_API_AFD
             avctx->dtg_active_format = p[0] & 0x0f;
-#endif
+#endif /* FF_API_AFD */
             s1->has_afd = 1;
-            s1->afd = p[0] & 0x0f;
+            s1->afd     = p[0] & 0x0f;
         }
     } else if (buf_end - p >= 6 &&
                p[0] == 'J' && p[1] == 'P' && p[2] == '3' && p[3] == 'D' &&
diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c
index ae2c7af92ed2a30fb4b84e3650e35881e578084a..8201c2d44afcdd8d6c9b83921c4ba699cfed92e9 100644
--- a/libavfilter/vf_showinfo.c
+++ b/libavfilter/vf_showinfo.c
@@ -148,7 +148,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
                    av_display_rotation_get((int32_t *)sd->data));
             break;
         case AV_FRAME_DATA_AFD:
-            av_log(ctx, AV_LOG_INFO, "afd: value of %u", sd->data[0]);
+            av_log(ctx, AV_LOG_INFO, "afd: value of %"PRIu8, sd->data[0]);
             break;
         default:
             av_log(ctx, AV_LOG_WARNING, "unknown side data type %d (%d bytes)",
diff --git a/libavutil/frame.h b/libavutil/frame.h
index ca76c6e19f01333a562d17f64bbf3ae482474bb2..6ff372749a0fab96f129a72f6861d80feff76cc6 100644
--- a/libavutil/frame.h
+++ b/libavutil/frame.h
@@ -83,21 +83,20 @@ enum AVFrameSideDataType {
      */
     AV_FRAME_DATA_DISPLAYMATRIX,
     /**
-     * Active Format Description data consisting of a single byte as specified in ETSI TS 101 154
-     * using AVActiveFormatDescription enum
+     * Active Format Description data consisting of a single byte as specified
+     * in ETSI TS 101 154 using AVActiveFormatDescription enum.
      */
     AV_FRAME_DATA_AFD,
 };
 
-enum AVActiveFormatDescription
-{
-    AV_AFD_SAME = 8,
-    AV_AFD_4_3  = 9,
-    AV_AFD_16_9 = 10,
-    AV_AFD_14_9 = 11,
+enum AVActiveFormatDescription {
+    AV_AFD_SAME         = 8,
+    AV_AFD_4_3          = 9,
+    AV_AFD_16_9         = 10,
+    AV_AFD_14_9         = 11,
     AV_AFD_4_3_SP_14_9  = 13,
     AV_AFD_16_9_SP_14_9 = 14,
-    AV_AFD_SP_4_3       = 15
+    AV_AFD_SP_4_3       = 15,
 };
 
 typedef struct AVFrameSideData {