~ubuntu-branches/debian/sid/ffmpeg/sid

« back to all changes in this revision

Viewing changes to libavcodec/y41penc.c

  • Committer: Package Import Robot
  • Author(s): Andreas Cadhalpun, Fabian Greffrath, Andreas Cadhalpun
  • Date: 2015-09-22 15:15:20 UTC
  • mfrom: (0.1.29)
  • Revision ID: package-import@ubuntu.com-20150922151520-hhmd3in9ykigjvs9
Tags: 7:2.8-1
[ Fabian Greffrath ]
* Pass the --dbg-package=ffmpeg-dbg parameter only to dh_strip.
* Add alternative Depends: libavcodec-ffmpeg-extra56 to libavcodec-dev and
  ffmpeg-dbg to allow for building and debugging with this library installed.

[ Andreas Cadhalpun ]
* Import new major upstream release 2.8.
* Remove the transitional lib*-ffmpeg-dev packages.
* Drop old Breaks on kodi-bin.
* Drop workaround for sparc, which is no Debian architecture anymore.
* Re-enable x265 on alpha, as it's available again.
* Disable unavailable frei0r, opencv and x264 on mips64el.
* Disable libopenjpeg (#787275) and libschroedinger (#787957) decoders.
  (Closes: #786670)
* Disable libdc1394 on sparc64, because it links against the broken due to
  #790560 libudev1.
* Enable libsnappy support.
* Add new symbols.
* Update debian/copyright.
* Update debian/tests/encdec_list.txt.
* Add hls-only-seek-if-there-is-an-offset.patch. (Closes: #798189)
* Add 'Breaks: libavutil-ffmpeg54 (>= 8:0)' to the libraries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
        return AVERROR_INVALIDDATA;
31
31
    }
32
32
 
33
 
    avctx->coded_frame = av_frame_alloc();
34
33
    avctx->bits_per_coded_sample = 12;
35
34
 
36
 
    if (!avctx->coded_frame) {
37
 
        av_log(avctx, AV_LOG_ERROR, "Could not allocate frame.\n");
38
 
        return AVERROR(ENOMEM);
39
 
    }
40
 
 
41
35
    return 0;
42
36
}
43
37
 
48
42
    uint8_t *y, *u, *v;
49
43
    int i, j, ret;
50
44
 
51
 
    if ((ret = ff_alloc_packet2(avctx, pkt, avctx->width * avctx->height * 1.5)) < 0)
 
45
    if ((ret = ff_alloc_packet2(avctx, pkt, avctx->width * avctx->height * 1.5, 0)) < 0)
52
46
        return ret;
53
47
 
54
 
    avctx->coded_frame->key_frame = 1;
55
 
    avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
56
48
    dst = pkt->data;
57
49
 
58
50
    for (i = avctx->height - 1; i >= 0; i--) {
84
76
 
85
77
static av_cold int y41p_encode_close(AVCodecContext *avctx)
86
78
{
87
 
    av_frame_free(&avctx->coded_frame);
88
 
 
89
79
    return 0;
90
80
}
91
81
 
99
89
    .close        = y41p_encode_close,
100
90
    .pix_fmts     = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV411P,
101
91
                                                 AV_PIX_FMT_NONE },
 
92
    .capabilities = AV_CODEC_CAP_INTRA_ONLY,
102
93
};