[SCM] libav/experimental: Make output_example use av_interleaved_write_frame() instead of av_write_frame(). Patch by Art Clarke (standard login name) xuggle com

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:38:45 UTC 2013


The following commit has been merged in the experimental branch:
commit a6f925b8f7778a8a316dda49c5ab5a56a1136f19
Author: Art Clarke <aclarke at vlideshow.com>
Date:   Wed Feb 18 11:46:14 2009 +0000

    Make output_example use av_interleaved_write_frame() instead of av_write_frame().
    Patch by Art Clarke (standard login name) xuggle com
    
    Originally committed as revision 17428 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/output_example.c b/output_example.c
index 82df06b..c6cd99f 100644
--- a/output_example.c
+++ b/output_example.c
@@ -163,7 +163,7 @@ static void write_audio_frame(AVFormatContext *oc, AVStream *st)
     pkt.data= audio_outbuf;
 
     /* write the compressed frame in the media file */
-    if (av_write_frame(oc, &pkt) != 0) {
+    if (av_interleaved_write_frame(oc, &pkt) != 0) {
         fprintf(stderr, "Error while writing audio frame\n");
         exit(1);
     }
@@ -372,7 +372,7 @@ static void write_video_frame(AVFormatContext *oc, AVStream *st)
         pkt.data= (uint8_t *)picture;
         pkt.size= sizeof(AVPicture);
 
-        ret = av_write_frame(oc, &pkt);
+        ret = av_interleaved_write_frame(oc, &pkt);
     } else {
         /* encode the image */
         out_size = avcodec_encode_video(c, video_outbuf, video_outbuf_size, picture);
@@ -390,7 +390,7 @@ static void write_video_frame(AVFormatContext *oc, AVStream *st)
             pkt.size= out_size;
 
             /* write the compressed frame in the media file */
-            ret = av_write_frame(oc, &pkt);
+            ret = av_interleaved_write_frame(oc, &pkt);
         } else {
             ret = 0;
         }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list