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

« back to all changes in this revision

Viewing changes to libavcodec/ccaption_dec.c

  • Committer: Package Import Robot
  • Author(s): Andreas Cadhalpun
  • Date: 2015-06-11 00:47:35 UTC
  • mfrom: (0.1.26)
  • Revision ID: package-import@ubuntu.com-20150611004735-vlyomyh8e919mkhb
Tags: 7:2.7-1
* Import new major upstream release 2.7.
   - Suggest new mpeg4_unpack_bframes bitstream filter instead of
     VirtualDub/Avidemux. (Closes: #781510)
* Add new symbols.
* Change maintainer to the pkg-multimedia team and move myself to uploaders.
* Let ffmpeg suggest ffmpeg-doc.
* Fix encdec autopkgtest to not fail, when skipping tests.
* Restrict shlib-with-non-pic-code lintian override to i386.
  Thanks to Jakub Wilk for the hint.
* Use '-strict -2' in the encdec autopkgtest also for probing/decoding.
* Disable loongson3 optimizations on mips, because they are not always
  available.
* Update debian/copyright.
* Update debian/tests/encdec_list.txt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
182
182
    ctx->rollup = 2;
183
183
    ret = ff_ass_subtitle_header_default(avctx);
184
184
    if(ret < 0) {
185
 
        goto fail;
 
185
        return ret;
186
186
    }
187
187
    /* allocate pkt buffer */
188
188
    ctx->pktbuf = av_buffer_alloc(128);
189
189
    if( !ctx->pktbuf) {
190
190
        ret = AVERROR(ENOMEM);
191
191
    }
192
 
 
193
 
fail:
194
192
    return ret;
195
193
}
196
194
 
340
338
        }
341
339
 
342
340
    }
 
341
    if(screen->row_used && ctx->buffer.len >= 2 ) {
 
342
        ctx->buffer.len -= 2;
 
343
        ctx->buffer.str[ctx->buffer.len] = 0;
 
344
    }
343
345
    ctx->startv_time = pts;
344
346
    ctx->end_time = pts;
345
347
    return ret;
552
554
            int start_time = av_rescale_q(ctx->start_time, avctx->time_base, (AVRational){ 1, 100 });
553
555
            int end_time = av_rescale_q(ctx->end_time, avctx->time_base, (AVRational){ 1, 100 });
554
556
            av_dlog(ctx, "cdp writing data (%s)\n",ctx->buffer.str);
555
 
            ret = ff_ass_add_rect(sub, ctx->buffer.str, start_time, end_time - start_time , 0);
 
557
            ret = ff_ass_add_rect_bprint(sub, &ctx->buffer, start_time, end_time - start_time);
556
558
            if (ret < 0)
557
559
                return ret;
558
560
            sub->pts = av_rescale_q(ctx->start_time, avctx->time_base, AV_TIME_BASE_Q);