diff --git a/libavformat/img2.c b/libavformat/img2.c
index 18b9cde230d72ff84a01834b13a8cc1a3ae1e7f3..622d759866e40d4c9204da55b5134581c1726519 100644
--- a/libavformat/img2.c
+++ b/libavformat/img2.c
@@ -54,9 +54,11 @@ typedef struct {
 static const IdStrMap img_tags[] = {
     { CODEC_ID_MJPEG     , "jpeg"},
     { CODEC_ID_MJPEG     , "jpg"},
+    { CODEC_ID_MJPEG     , "jps"},
     { CODEC_ID_LJPEG     , "ljpg"},
     { CODEC_ID_JPEGLS    , "jls"},
     { CODEC_ID_PNG       , "png"},
+    { CODEC_ID_PNG       , "pns"},
     { CODEC_ID_PNG       , "mng"},
     { CODEC_ID_PPM       , "ppm"},
     { CODEC_ID_PPM       , "pnm"},