~ubuntu-branches/ubuntu/oneiric/libav/oneiric

« back to all changes in this revision

Viewing changes to libavcodec/h261dec.c

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2011-04-30 14:27:42 UTC
  • mfrom: (1.1.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20110430142742-quvblxk1tj6adlh5
Tags: 4:0.7~b1-1ubuntu1
* Merge from debian. Remaining changes:
  - don't build against libfaad, libdirac, librtmp and libopenjpeg
    (all in universe)
  - explicitly --enable-pic on powerpc, cf. LP #654666
  - different arm configure bits that should probably better be
    merged into debian
* Cherry-picked from git: 
  - install doc/APIChanges and refer to them in NEWS.Debian (Closes: #623682)
  - don't try to install non-existing documentation, fixes FTBFS on powerpc

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
4
4
 * Copyright (c) 2004 Maarten Daniels
5
5
 *
6
 
 * This file is part of FFmpeg.
 
6
 * This file is part of Libav.
7
7
 *
8
 
 * FFmpeg is free software; you can redistribute it and/or
 
8
 * Libav is free software; you can redistribute it and/or
9
9
 * modify it under the terms of the GNU Lesser General Public
10
10
 * License as published by the Free Software Foundation; either
11
11
 * version 2.1 of the License, or (at your option) any later version.
12
12
 *
13
 
 * FFmpeg is distributed in the hope that it will be useful,
 
13
 * Libav is distributed in the hope that it will be useful,
14
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16
16
 * Lesser General Public License for more details.
17
17
 *
18
18
 * You should have received a copy of the GNU Lesser General Public
19
 
 * License along with FFmpeg; if not, write to the Free Software
 
19
 * License along with Libav; if not, write to the Free Software
20
20
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
21
 */
22
22
 
553
553
    int ret;
554
554
    AVFrame *pict = data;
555
555
 
556
 
    dprintf(avctx, "*****frame %d size=%d\n", avctx->frame_number, buf_size);
557
 
    dprintf(avctx, "bytes=%x %x %x %x\n", buf[0], buf[1], buf[2], buf[3]);
 
556
    av_dlog(avctx, "*****frame %d size=%d\n", avctx->frame_number, buf_size);
 
557
    av_dlog(avctx, "bytes=%x %x %x %x\n", buf[0], buf[1], buf[2], buf[3]);
558
558
    s->flags= avctx->flags;
559
559
    s->flags2= avctx->flags2;
560
560
 
595
595
        goto retry;
596
596
    }
597
597
 
598
 
    // for hurry_up==5
 
598
    // for skipping the frame
599
599
    s->current_picture.pict_type= s->pict_type;
600
600
    s->current_picture.key_frame= s->pict_type == FF_I_TYPE;
601
601
 
 
602
#if FF_API_HURRY_UP
602
603
    /* skip everything if we are in a hurry>=5 */
603
604
    if(avctx->hurry_up>=5) return get_consumed_bytes(s, buf_size);
 
605
#endif
604
606
    if(  (avctx->skip_frame >= AVDISCARD_NONREF && s->pict_type==FF_B_TYPE)
605
607
       ||(avctx->skip_frame >= AVDISCARD_NONKEY && s->pict_type!=FF_I_TYPE)
606
608
       || avctx->skip_frame >= AVDISCARD_ALL)
641
643
    return 0;
642
644
}
643
645
 
644
 
AVCodec h261_decoder = {
 
646
AVCodec ff_h261_decoder = {
645
647
    "h261",
646
648
    AVMEDIA_TYPE_VIDEO,
647
649
    CODEC_ID_H261,
651
653
    h261_decode_end,
652
654
    h261_decode_frame,
653
655
    CODEC_CAP_DR1,
 
656
    .max_lowres = 3,
654
657
    .long_name = NULL_IF_CONFIG_SMALL("H.261"),
655
658
};