Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 339463 | Differences between
and this patch

Collapse All | Expand All

(-)electricsheep.c.orig (-3 / +3 lines)
Lines 670-676 Link Here
670
    input_stream_index = -1;
670
    input_stream_index = -1;
671
    for (j = 0; j < ictx->nb_streams; j++) {
671
    for (j = 0; j < ictx->nb_streams; j++) {
672
	AVCodecContext *enc = ictx->streams[j]->codec;
672
	AVCodecContext *enc = ictx->streams[j]->codec;
673
	if (CODEC_TYPE_VIDEO == enc->codec_type) {
673
	if (AVMEDIA_TYPE_VIDEO == enc->codec_type) {
674
	    input_stream_index = j;
674
	    input_stream_index = j;
675
	    break;
675
	    break;
676
	}
676
	}
Lines 696-702 Link Here
696
696
697
	output_ctx = avformat_alloc_context();
697
	output_ctx = avformat_alloc_context();
698
698
699
	ofmt = guess_format(NULL, fname, NULL);
699
	ofmt = av_guess_format(NULL, fname, NULL);
700
	if (!ofmt) {
700
	if (!ofmt) {
701
	    fprintf(logout, "could not determine format from %s.\n", fname);
701
	    fprintf(logout, "could not determine format from %s.\n", fname);
702
	    exit(1);
702
	    exit(1);
Lines 738-744 Link Here
738
	av_init_packet(&opkt);
738
	av_init_packet(&opkt);
739
	if (av_parser_change(ictx->streams[input_stream_index]->parser, output_ctx->streams[0]->codec,
739
	if (av_parser_change(ictx->streams[input_stream_index]->parser, output_ctx->streams[0]->codec,
740
			     &opkt.data, &opkt.size, ipkt.data, ipkt.size,
740
			     &opkt.data, &opkt.size, ipkt.data, ipkt.size,
741
			     ipkt.flags & PKT_FLAG_KEY))
741
			     ipkt.flags & AV_PKT_FLAG_KEY))
742
	    opkt.destruct= av_destruct_packet;
742
	    opkt.destruct= av_destruct_packet;
743
		
743
		
744
	if (-1 == av_interleaved_write_frame(output_ctx, &opkt)) {
744
	if (-1 == av_interleaved_write_frame(output_ctx, &opkt)) {

Return to bug 339463