diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2009-08-02 17:42:40 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2009-08-02 17:42:40 +0000 |
commit | c15508dc93ebaac9e04a436f6f1d6af09a0a350e (patch) | |
tree | 2c6eae94c8694f698766b4a53a68a823ef94d2d4 /libavformat/output-example.c | |
parent | c959c6ee3dba0bd54bcdb7679cca8b5f3560550d (diff) | |
download | ffmpeg-c15508dc93ebaac9e04a436f6f1d6af09a0a350e.tar.gz |
Use enums instead of int.
Originally committed as revision 19568 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/output-example.c')
-rw-r--r-- | libavformat/output-example.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/output-example.c b/libavformat/output-example.c index c6cd99f7b8..17c97f79db 100644 --- a/libavformat/output-example.c +++ b/libavformat/output-example.c @@ -56,7 +56,7 @@ int audio_input_frame_size; /* * 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 @@ uint8_t *video_outbuf; 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 @@ static AVStream *add_video_stream(AVFormatContext *oc, int codec_id) 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; |