summaryrefslogtreecommitdiffstats
path: root/libavcodec/png.h
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2017-04-03 10:08:29 -0400
committerRonald S. Bultje <rsbultje@gmail.com>2017-04-03 10:08:29 -0400
commit478f1c3d5e5463a284ea7efecfc62d47ba3be11a (patch)
treed10182a9ab2d039c6d91d36a5c05f1630578467b /libavcodec/png.h
parent1f50baa2b2da7fdbfccf0662883f38a763ff6619 (diff)
downloadffmpeg-streaming-478f1c3d5e5463a284ea7efecfc62d47ba3be11a.zip
ffmpeg-streaming-478f1c3d5e5463a284ea7efecfc62d47ba3be11a.tar.gz
png: split header state and data state in two separate variables.
Fixes a reported (but false) race condition in tsan for fate-apng: WARNING: ThreadSanitizer: data race (pid=6274) Read of size 4 at 0x7d680001ec78 by main thread (mutexes: write M1338): #0 update_thread_context src/libavcodec/pngdec.c:1456 (ffmpeg+0x000000dacf0c) [..] Previous write of size 4 at 0x7d680001ec78 by thread T1 (mutexes: write M1335): #0 decode_idat_chunk src/libavcodec/pngdec.c:737 (ffmpeg+0x000000dae951)
Diffstat (limited to 'libavcodec/png.h')
-rw-r--r--libavcodec/png.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/png.h b/libavcodec/png.h
index 948c2f7..e967fcf 100644
--- a/libavcodec/png.h
+++ b/libavcodec/png.h
@@ -42,11 +42,6 @@
#define PNG_FILTER_VALUE_PAETH 4
#define PNG_FILTER_VALUE_MIXED 5
-#define PNG_IHDR 0x0001
-#define PNG_IDAT 0x0002
-#define PNG_ALLIMAGE 0x0004
-#define PNG_PLTE 0x0008
-
#define NB_PASSES 7
#define PNGSIG 0x89504e470d0a1a0a
OpenPOWER on IntegriCloud