aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-13 23:28:18 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-17 00:53:50 +0200
commitd8353256a3ae9bbf76b9b080884b82566c4938ab (patch)
tree4865e6597fb2fcc1a4b3ae5397c9d0e6cb8a363c
parent34f590b29bc427036b6cb030bcc23d120316c20f (diff)
downloadffmpeg-d8353256a3ae9bbf76b9b080884b82566c4938ab.tar.gz
iff: compact code setting metadata tags
Ease readability.
-rw-r--r--libavformat/iff.c19
1 files changed, 4 insertions, 15 deletions
diff --git a/libavformat/iff.c b/libavformat/iff.c
index b57f0ee279..b092de0b08 100644
--- a/libavformat/iff.c
+++ b/libavformat/iff.c
@@ -232,21 +232,10 @@ static int iff_read_header(AVFormatContext *s,
break;
case ID_ANNO:
- case ID_TEXT:
- metadata_tag = "comment";
- break;
-
- case ID_AUTH:
- metadata_tag = "artist";
- break;
-
- case ID_COPYRIGHT:
- metadata_tag = "copyright";
- break;
-
- case ID_NAME:
- metadata_tag = "title";
- break;
+ case ID_TEXT: metadata_tag = "comment"; break;
+ case ID_AUTH: metadata_tag = "artist"; break;
+ case ID_COPYRIGHT: metadata_tag = "copyright"; break;
+ case ID_NAME: metadata_tag = "title"; break;
}
if (metadata_tag) {