Your message dated Sat, 03 Mar 2012 19:48:09 +0000
with message-id <e1s3uw5-0006wv...@franck.debian.org>
and subject line Bug#632133: fixed in avbin 7-1.2
has caused the Debian Bug report #632133,
regarding avbin: FTBFS with Libav 0.7
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
632133: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=632133
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: avbin
Version: 7-1.1
Severity: important
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch



*** /tmp/tmpRLR17V
In Ubuntu, the attached patch was applied to achieve the following:

  * Remove usage of deprecated APIs to work with Libav 0.7


Libav 0.7 is currently in experimental, but will be soon uploaded to unstable.


-- System Information:
Debian Release: squeeze/sid
  APT prefers natty-updates
  APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500, 
'natty-proposed'), (500, 'natty')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-10-generic (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u avbin-7/debian/changelog avbin-7/debian/changelog
diff -u avbin-7/src/avbin.c avbin-7/src/avbin.c
--- avbin-7/src/avbin.c
+++ avbin-7/src/avbin.c
@@ -29,9 +29,11 @@
 #include <avcodec.h>
 #include <avutil.h>
 #include <swscale.h>
+#include <libavutil/dict.h>
 
 struct _AVbinFile {
     AVFormatContext *context;
+    AVDictionary *format_options;
     AVPacket *packet;
 };
 
@@ -122,7 +124,7 @@
 AVbinFile *avbin_open_filename(const char *filename)
 {
     AVbinFile *file = malloc(sizeof *file);
-    if (av_open_input_file(&file->context, filename, NULL, 0, NULL) != 0)
+    if (av_open_input(&file->context, filename, NULL, &file->format_options) != 0)
         goto error;
 
     if (av_find_stream_info(file->context) < 0)
@@ -168,20 +170,38 @@
 
 AVbinResult avbin_file_info(AVbinFile *file, AVbinFileInfo *info)
 {
+    AVDictionaryEntry *result;
+
     if (info->structure_size < sizeof *info)
         return AVBIN_RESULT_ERROR;
 
     info->n_streams = file->context->nb_streams;
     info->start_time = file->context->start_time;
     info->duration = file->context->duration;
-    memcpy(info->title, file->context->title, sizeof(info->title));
-    memcpy(info->author, file->context->author, sizeof(info->author));
-    memcpy(info->copyright, file->context->copyright, sizeof(info->copyright));
-    memcpy(info->comment, file->context->comment, sizeof(info->comment));
-    memcpy(info->album, file->context->album, sizeof(info->album));
-    info->year = file->context->year;
-    info->track = file->context->track;
-    memcpy(info->genre, file->context->genre, sizeof(info->genre));
+
+    result = av_dict_get(file->format_options, "title", NULL, 0);
+    strncpy(info->title, result->value, sizeof(info->title));
+
+    result = av_dict_get(file->format_options, "artist", NULL, 0);
+    strncpy(info->author, result->value, sizeof(info->author));
+
+    result = av_dict_get(file->format_options, "copyright", NULL, 0);
+    strncpy(info->copyright, result->value, sizeof(info->copyright));
+
+    result = av_dict_get(file->format_options, "comment", NULL, 0);
+    strncpy(info->comment, result->value, sizeof(info->comment));
+
+    result = av_dict_get(file->format_options, "album", NULL, 0);
+    strncpy(info->album, result->value, sizeof(info->album));
+
+    result = av_dict_get(file->format_options, "year", NULL, 0);
+    info->year = strtol(result->value, NULL, 10);
+
+    result = av_dict_get(file->format_options, "track", NULL, 0);
+    info->track = strtol(result->value, NULL, 10);
+
+    result = av_dict_get(file->format_options, "genre", NULL, 0);
+    strncpy(info->genre, result->value, sizeof(info->genre));
 
     return AVBIN_RESULT_OK;
 }
@@ -197,14 +217,14 @@
 
     switch (context->codec_type)
     {
-        case CODEC_TYPE_VIDEO:
+        case AVMEDIA_TYPE_VIDEO:
             info->type = AVBIN_STREAM_TYPE_VIDEO;
             info->video.width = context->width;
             info->video.height = context->height;
             info->video.sample_aspect_num = context->sample_aspect_ratio.num;
             info->video.sample_aspect_den = context->sample_aspect_ratio.den;
             break;
-        case CODEC_TYPE_AUDIO:
+        case AVMEDIA_TYPE_AUDIO:
             info->type = AVBIN_STREAM_TYPE_AUDIO;
             info->audio.sample_rate = context->sample_rate;
             info->audio.channels = context->channels;
@@ -256,7 +276,7 @@
     stream->format_context = file->context;
     stream->codec_context = codec_context;
     stream->type = codec_context->codec_type;
-    if (stream->type == CODEC_TYPE_VIDEO)
+    if (stream->type == AVMEDIA_TYPE_VIDEO)
         stream->frame = avcodec_alloc_frame();
     else
         stream->frame = NULL;
@@ -298,7 +318,7 @@
                        uint8_t *data_out, int *size_out)
 {
     int used;
-    if (stream->type != CODEC_TYPE_AUDIO)
+    if (stream->type != AVMEDIA_TYPE_AUDIO)
         return AVBIN_RESULT_ERROR;
 
     used = avcodec_decode_audio2(stream->codec_context, 
@@ -321,7 +341,7 @@
     int height = stream->codec_context->height;
     int used;
 
-    if (stream->type != CODEC_TYPE_VIDEO)
+    if (stream->type != AVMEDIA_TYPE_VIDEO)
         return AVBIN_RESULT_ERROR;
 
     used = avcodec_decode_video(stream->codec_context, 

--- End Message ---
--- Begin Message ---
Source: avbin
Source-Version: 7-1.2

We believe that the bug you reported is fixed in the latest version of
avbin, which is due to be installed in the Debian FTP archive:

avbin_7-1.2.diff.gz
  to main/a/avbin/avbin_7-1.2.diff.gz
avbin_7-1.2.dsc
  to main/a/avbin/avbin_7-1.2.dsc
libavbin-dev_7-1.2_amd64.deb
  to main/a/avbin/libavbin-dev_7-1.2_amd64.deb
libavbin0_7-1.2_amd64.deb
  to main/a/avbin/libavbin0_7-1.2_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 632...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stefano Rivera <stefa...@debian.org> (supplier of updated avbin package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 03 Mar 2012 18:15:31 +0000
Source: avbin
Binary: libavbin0 libavbin-dev
Architecture: source amd64
Version: 7-1.2
Distribution: unstable
Urgency: low
Maintainer: Andrew Straw <straw...@astraw.com>
Changed-By: Stefano Rivera <stefa...@debian.org>
Description: 
 libavbin-dev - development files for libavbin
 libavbin0  - cross-platform media decoding library
Closes: 632133
Changes: 
 avbin (7-1.2) unstable; urgency=low
 .
   * Non-maintainer upload.
   * Remove usage of deprecated APIs to work with Libav >= 0.7. Thanks to
     Reinhard Tartler for the first part of this. (Closes: #632133)
Checksums-Sha1: 
 5a5f4d11bc1b1c9ddd4f01d06323e354aa953f0c 1930 avbin_7-1.2.dsc
 ae1bae98340a91b986414bbbcbf61928ed4d5c2c 4815 avbin_7-1.2.diff.gz
 def84e97c464d4861cf527a9599bc6cec64bac95 8084 libavbin0_7-1.2_amd64.deb
 05a3876fc27a5c944e3c2e17f539b15fb232d612 35714 libavbin-dev_7-1.2_amd64.deb
Checksums-Sha256: 
 838aad8fac56ffc847d5194f6de1fd26cffd794fa52cb5f40f180a7fcbf1951b 1930 
avbin_7-1.2.dsc
 8507a85cfa81a228440bdaa30b4995e45897d5d06c33dd5fc8ae4b8031840c09 4815 
avbin_7-1.2.diff.gz
 9360cc7e301b6302db48bbfe465fad744fbbe9d1d8d58ad47017a3b8ab924193 8084 
libavbin0_7-1.2_amd64.deb
 0f3f202767c86690c6c107dbef051ba542fb7233eca05d9483cbe8ae16b1e5ec 35714 
libavbin-dev_7-1.2_amd64.deb
Files: 
 f937944a211f5a11d1b5bf99830ccc4f 1930 utils extra avbin_7-1.2.dsc
 8d494a77e5ecd913aca1480de800eb7d 4815 utils extra avbin_7-1.2.diff.gz
 47c56d8b5d7cf3fb7c76f7700477daf1 8084 libs extra libavbin0_7-1.2_amd64.deb
 e2755ea87aefa15e3ace20e546e59a34 35714 libdevel extra 
libavbin-dev_7-1.2_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCgAGBQJPUnHiAAoJEACQ/CG1zRrMXusQAMF/7/AlXh1+3ewdWyqOON5r
XlZ82Y99VKB7qtZKX+8hw6ARokOanEvnOVzMFRIW0zN9kvlzKcvTyoaLrDiBFrnR
/DcP8wNl2H01rqHRVCgNoYlsjquy/CqQt0OKyq0IgxvZpz7oxKRLWsxvEIqvwlJK
190p/VZvI+wHeSILgEyFDFNHn/wM6ngNSxgX5DoA4N1TEh00psTadDhajsckz8wz
eXIeOaLSkPq+mptDKmRMIdxqPSxQpOaZM24xnWOPS127SaAh2YGq5OzW9AydTq69
bW1S+DNKUb/FZydERiuamGWEUOs3cHbVeHUr1yKc1OFaKyJWnri22y/uZ5vDkwB0
KnlBvXlr9pQGya9wgB5xuFHZbfrY2wJ92Pb7TR9qs5hB6B3JgN6Y+pPSFVNlbp64
jUJyjmV3VBjsq9HxurFD4Jnseg58/mcHb8Zbwc4vfq5JuAuOOfPNicov+hmtZvA0
8LeZBO0dVMT0GmWyTl73T8wW/SkF6QcrnRYmpGzoA+g+v9gYneYz+1P5Dv4lathL
iDqS6lpL8/XUa2QztaTuQIV7Ys6vTU0e+EhpfK6cs3eVcBV7TzOYAi7Fd+QDHos5
AoUgVYxrU4NG3YFNN9YLGyapTsVkmXe8djDe+LMOKVFzl0T4shrQ7NS7rxNM9ELw
JBIZGNKy3VmhCxbUNqiS
=XRvl
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to