changeset 5124:cb7a82c74dcc libavformat

Use enums instead of int.
author ramiro
date Sun, 02 Aug 2009 17:42:40 +0000
parents cc34279f0fab
children 2a0aabbef960
files output-example.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/output-example.c	Fri Jul 31 06:49:36 2009 +0000
+++ b/output-example.c	Sun Aug 02 17:42:40 2009 +0000
@@ -56,7 +56,7 @@
 /*
  * add an audio output stream
  */
-static AVStream *add_audio_stream(AVFormatContext *oc, int codec_id)
+static AVStream *add_audio_stream(AVFormatContext *oc, enum CodecID codec_id)
 {
     AVCodecContext *c;
     AVStream *st;
@@ -185,7 +185,7 @@
 int frame_count, video_outbuf_size;
 
 /* add a video output stream */
-static AVStream *add_video_stream(AVFormatContext *oc, int codec_id)
+static AVStream *add_video_stream(AVFormatContext *oc, enum CodecID codec_id)
 {
     AVCodecContext *c;
     AVStream *st;
@@ -230,7 +230,7 @@
     return st;
 }
 
-static AVFrame *alloc_picture(int pix_fmt, int width, int height)
+static AVFrame *alloc_picture(enum PixelFormat pix_fmt, int width, int height)
 {
     AVFrame *picture;
     uint8_t *picture_buf;