diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-01-12 00:48:29 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-01-12 00:48:29 +0000 |
commit | a33c7159e1630ecef81c71e3f2624f09e7d2a413 (patch) | |
tree | c7bac0bfca57bc616a25aa6e0e02f43a16545587 /libavcodec/utils.c | |
parent | 2a006cd3968461455c8d15640f8cec38ddfc97bb (diff) | |
download | ffmpeg-a33c7159e1630ecef81c71e3f2624f09e7d2a413.tar.gz |
get_format()
Originally committed as revision 1451 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 1b532fc94c..ba47785ffc 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -185,6 +185,10 @@ void avcodec_default_release_buffer(AVCodecContext *s, AVFrame *pic){ //printf("R%X\n", pic->opaque); } +enum PixelFormat avcodec_default_get_format(struct AVCodecContext *s, enum PixelFormat * fmt){ + return fmt[0]; +} + void avcodec_get_context_defaults(AVCodecContext *s){ s->bit_rate= 800*1000; s->bit_rate_tolerance= s->bit_rate*10; @@ -207,6 +211,7 @@ void avcodec_get_context_defaults(AVCodecContext *s){ s->me_method= ME_EPZS; s->get_buffer= avcodec_default_get_buffer; s->release_buffer= avcodec_default_release_buffer; + s->get_format= avcodec_default_get_format; s->me_subpel_quality=8; } |