Mageia Bugzilla – Attachment 1906 Details for
Bug 5131
Add a patch to imageshack uploader rpm
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Tentative to compile with ffmpeg 0.10-2 (cauldron)
imageshack-uploader-2.2-mga-new_api-ffmpeg_fas.c.patch (text/plain), 1.03 KB, created by
Dimitrios Glentadakis
on 2012-04-02 18:35:05 CEST
(
hide
)
Description:
Tentative to compile with ffmpeg 0.10-2 (cauldron)
Filename:
MIME Type:
Creator:
Dimitrios Glentadakis
Created:
2012-04-02 18:35:05 CEST
Size:
1.03 KB
patch
obsolete
>--- imageshack-uploader.orig/ffmpeg_fas.c 2012-03-17 13:32:11.000000000 +0100 >+++ imageshack-uploader/ffmpeg_fas.c 2012-04-02 18:29:17.340247479 +0200 >@@ -226,7 +226,7 @@ > int stream_idx; > for (stream_idx = 0; stream_idx < fas_context->format_context->nb_streams; stream_idx++) > { >- if (fas_context->format_context->streams[stream_idx]->codec->codec_type == CODEC_TYPE_VIDEO) >+ if (fas_context->format_context->streams[stream_idx]->codec->codec_type == AVMEDIA_TYPE_VIDEO) > { > fas_context->stream_idx = stream_idx; > fas_context->codec_context = fas_context->format_context->streams[stream_idx]->codec; >@@ -380,7 +380,7 @@ > /* note this -1 approach to setting the packet is a workaround for a common failure. setting > to 0 would work just incur a huge penalty in videos that needed -1. Might be worth testing. > */ >- if (packet.flags & PKT_FLAG_KEY) >+ if (packet.flags & AV_PKT_TYPE_KEY) > { > //fprintf(stderr, "Packet: (F:%d %lld %lld)\n", context->current_frame_index, packet.pts, packet.dts); >
--- imageshack-uploader.orig/ffmpeg_fas.c 2012-03-17 13:32:11.000000000 +0100 +++ imageshack-uploader/ffmpeg_fas.c 2012-04-02 18:29:17.340247479 +0200 @@ -226,7 +226,7 @@ int stream_idx; for (stream_idx = 0; stream_idx < fas_context->format_context->nb_streams; stream_idx++) { - if (fas_context->format_context->streams[stream_idx]->codec->codec_type == CODEC_TYPE_VIDEO) + if (fas_context->format_context->streams[stream_idx]->codec->codec_type == AVMEDIA_TYPE_VIDEO) { fas_context->stream_idx = stream_idx; fas_context->codec_context = fas_context->format_context->streams[stream_idx]->codec; @@ -380,7 +380,7 @@ /* note this -1 approach to setting the packet is a workaround for a common failure. setting to 0 would work just incur a huge penalty in videos that needed -1. Might be worth testing. */ - if (packet.flags & PKT_FLAG_KEY) + if (packet.flags & AV_PKT_TYPE_KEY) { //fprintf(stderr, "Packet: (F:%d %lld %lld)\n", context->current_frame_index, packet.pts, packet.dts);
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 5131
:
1872
|
1901
| 1906