Mercurial > libavcodec.hg
comparison h263dec.c @ 9033:bcf716c58be4 libavcodec
add ff_find_hwaccel() by Gwenole Beauchesne
author | michael |
---|---|
date | Tue, 24 Feb 2009 19:04:43 +0000 |
parents | e10f554d8fb7 |
children | ca19176df986 |
comparison
equal
deleted
inserted
replaced
9032:caee3bed2145 | 9033:bcf716c58be4 |
---|---|
104 break; | 104 break; |
105 default: | 105 default: |
106 return -1; | 106 return -1; |
107 } | 107 } |
108 s->codec_id= avctx->codec->id; | 108 s->codec_id= avctx->codec->id; |
109 avctx->hwaccel= ff_find_hwaccel(avctx->codec->id, avctx->pix_fmt); | |
109 | 110 |
110 /* for h263, we allocate the images after having read the header */ | 111 /* for h263, we allocate the images after having read the header */ |
111 if (avctx->codec->id != CODEC_ID_H263 && avctx->codec->id != CODEC_ID_MPEG4) | 112 if (avctx->codec->id != CODEC_ID_H263 && avctx->codec->id != CODEC_ID_MPEG4) |
112 if (MPV_common_init(s) < 0) | 113 if (MPV_common_init(s) < 0) |
113 return -1; | 114 return -1; |