---
 libavcodec/pnm.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/libavcodec/pnm.c b/libavcodec/pnm.c
index bcc128d..4c2fc49 100644
--- a/libavcodec/pnm.c
+++ b/libavcodec/pnm.c
@@ -158,26 +158,26 @@ static int check_maxval(AVCodecContext *avctx, PNMContext 
* const s)
     return 0;
 }
 
-int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s)
+int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext *const s)
 {
     char buf1[32];
     int ret;
 
     pnm_get(s, buf1, sizeof(buf1));
-    s->type= buf1[1]-'0';
-    if(buf1[0] != 'P')
+    s->type = buf1[1] - '0';
+    if (buf1[0] != 'P')
         return AVERROR_INVALIDDATA;
 
-    if (s->type==1 || s->type==4) {
+    if (s->type == 1 || s->type == 4) {
         avctx->pix_fmt = AV_PIX_FMT_MONOWHITE;
-    } else if (s->type==2 || s->type==5) {
+    } else if (s->type == 2 || s->type == 5) {
         if (avctx->codec_id == AV_CODEC_ID_PGMYUV)
             avctx->pix_fmt = AV_PIX_FMT_YUV420P;
         else
             avctx->pix_fmt = AV_PIX_FMT_GRAY8;
-    } else if (s->type==3 || s->type==6) {
+    } else if (s->type == 3 || s->type == 6) {
         avctx->pix_fmt = AV_PIX_FMT_RGB24;
-    } else if (s->type==7) {
+    } else if (s->type == 7) {
         return decode_header_p7(avctx, s);
     } else {
         return AVERROR_INVALIDDATA;
-- 
2.3.1

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to