comparison utils.c @ 9011:90c99bda19f5 libavcodec

Approved hunks for VAAPI / our new shiny hwaccel API by Gwenole Beauchesne gbeauchesne splitted desktop com
author michael
date Mon, 23 Feb 2009 13:35:52 +0000
parents 5a9485bd4421
children 1de11a984fc6
comparison
equal deleted inserted replaced
9010:b6a47d0b6b63 9011:90c99bda19f5
389 if(ret) ret[i]= r; 389 if(ret) ret[i]= r;
390 } 390 }
391 return 0; 391 return 0;
392 } 392 }
393 393
394 enum PixelFormat avcodec_default_get_format(struct AVCodecContext *s, const enum PixelFormat * fmt){ 394 enum PixelFormat avcodec_default_get_format(struct AVCodecContext *s, const enum PixelFormat *fmt){
395 while (*fmt != PIX_FMT_NONE && ff_is_hwaccel_pix_fmt(*fmt))
396 ++fmt;
395 return fmt[0]; 397 return fmt[0];
396 } 398 }
397 399
398 void avcodec_get_frame_defaults(AVFrame *pic){ 400 void avcodec_get_frame_defaults(AVFrame *pic){
399 memset(pic, 0, sizeof(AVFrame)); 401 memset(pic, 0, sizeof(AVFrame));