summaryrefslogtreecommitdiff
path: root/libavformat/aiffenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-10-02 06:04:12 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2019-10-03 19:34:23 +0200
commitbe0d3a2df1a1ec627ba50f535f61f7fcd359f6a4 (patch)
tree6e4d048af0b121f60ab5e13439468f0e253b6835 /libavformat/aiffenc.c
parentc694fc5759719de577fd0751103e20b6ce902a8f (diff)
avformat/aiffenc: Remove wrong and redundant check
The check "if (!pb->seekable & AVIO_SEEKABLE_NORMAL)" is wrong, because ! has higher precendence than &. But it is also redundant, because this part of the code is only ever reached when the AVIO_SEEKABLE_NORMAL flag is set for pb. So simply remove the check. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Matthieu Bouron <matthieu.bouron@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/aiffenc.c')
-rw-r--r--libavformat/aiffenc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavformat/aiffenc.c b/libavformat/aiffenc.c
index 0b837cd264..d09c9afb95 100644
--- a/libavformat/aiffenc.c
+++ b/libavformat/aiffenc.c
@@ -49,9 +49,6 @@ static int put_id3v2_tags(AVFormatContext *s, AIFFOutputContext *aiff)
AVIOContext *pb = s->pb;
AVPacketList *pict_list = aiff->pict_list;
- if (!pb->seekable & AVIO_SEEKABLE_NORMAL)
- return 0;
-
if (!s->metadata && !aiff->pict_list)
return 0;