---
 libavcodec/framethread.c |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/libavcodec/framethread.c b/libavcodec/framethread.c
index abe8c98..41b5810 100644
--- a/libavcodec/framethread.c
+++ b/libavcodec/framethread.c
@@ -31,12 +31,6 @@ Lots of 'volatile'
 Only works with pthreads
 */
 
-enum {
-    STATE_INPUT_READY,
-    STATE_PREDECODING,
-    STATE_DECODING
-};
-
 typedef struct PerThreadContext {
     pthread_t thread;
     pthread_cond_t input_cond, progress_cond, output_cond;
@@ -54,7 +48,11 @@ typedef struct PerThreadContext {
 
     int frame_number, decoded_frame_number, decode_progress;
 
-    int state;
+    enum {
+        STATE_INPUT_READY,
+        STATE_PREDECODING,
+        STATE_DECODING
+    } state;
 
     AVFrame released_buffers[MAX_DELAYED_RELEASED_BUFFERS];
     int nb_released_buffers;
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to