comparison src/ffmpeg/libavcodec/utils.c @ 831:dec0488e1344 trunk

[svn] - remove more video codecs.
author nenolod
date Mon, 12 Mar 2007 15:28:22 -0700
parents a53d893eb303
children
comparison
equal deleted inserted replaced
830:68562d99230f 831:dec0488e1344
111 uint8_t *buf, int buf_size) 111 uint8_t *buf, int buf_size)
112 { 112 {
113 int ret; 113 int ret;
114 114
115 *got_picture_ptr= 0; 115 *got_picture_ptr= 0;
116 if((avctx->coded_width||avctx->coded_height) && avcodec_check_dimensions(avctx,avctx->coded_width,avctx->coded_height))
117 return -1;
118 if((avctx->codec->capabilities & CODEC_CAP_DELAY) || buf_size){ 116 if((avctx->codec->capabilities & CODEC_CAP_DELAY) || buf_size){
119 ret = avctx->codec->decode(avctx, picture, got_picture_ptr, 117 ret = avctx->codec->decode(avctx, picture, got_picture_ptr,
120 buf, buf_size); 118 buf, buf_size);
121 119
122 emms_c(); //needed to avoid an emms_c() call before every return; 120 emms_c(); //needed to avoid an emms_c() call before every return;