~ubuntu-branches/ubuntu/jaunty/xvidcap/jaunty-proposed

« back to all changes in this revision

Viewing changes to ffmpeg/libavcodec/avs.c

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc, Andrew Starr-Bochicchio, Lionel Le Folgoc
  • Date: 2008-12-26 00:10:06 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20081226001006-2040ls9680bd1blt
Tags: 1.1.7-0.2ubuntu1
[ Andrew Starr-Bochicchio ]
* Merge from debian-multimedia (LP: #298547), Ubuntu Changes:
 - For ffmpeg-related build-deps, fix versionized dependencies
   as the ubuntu versioning is different than debian-multimedia's.

[ Lionel Le Folgoc ]
* LP: #311412 is fixed since the 1.1.7~rc1-0.1 revision.
* debian/patches/03_ffmpeg.diff: updated to fix FTBFS due to libswscale API
  change (cherry-pick from Gentoo #234383).

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 *
17
17
 * You should have received a copy of the GNU Lesser General Public
18
18
 * License along with FFmpeg; if not, write to the Free Software
19
 
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
20
 */
21
21
 
22
22
#include "avcodec.h"
44
44
 
45
45
static int
46
46
avs_decode_frame(AVCodecContext * avctx,
47
 
                 void *data, int *data_size, uint8_t * buf, int buf_size)
 
47
                 void *data, int *data_size, const uint8_t * buf, int buf_size)
48
48
{
49
49
    avs_context_t *const avs = avctx->priv_data;
50
50
    AVFrame *picture = data;
51
51
    AVFrame *const p = (AVFrame *) & avs->picture;
52
 
    uint8_t *table, *vect, *out;
 
52
    const uint8_t *table, *vect;
 
53
    uint8_t *out;
53
54
    int i, j, x, y, stride, vect_w = 3, vect_h = 3;
54
55
    int sub_type;
55
56
    avs_block_type_t type;
141
142
    return buf_size;
142
143
}
143
144
 
144
 
static int avs_decode_init(AVCodecContext * avctx)
 
145
static av_cold int avs_decode_init(AVCodecContext * avctx)
145
146
{
146
147
    avctx->pix_fmt = PIX_FMT_PAL8;
147
148
    return 0;
157
158
    NULL,
158
159
    avs_decode_frame,
159
160
    CODEC_CAP_DR1,
 
161
    .long_name = "AVS (Audio Video Standard) video",
160
162
};