~bratsche/vlc/vlc-notify-add-actions-with-server-support

« back to all changes in this revision

Viewing changes to modules/codec/ffmpeg/mux.c

  • Committer: Bazaar Package Importer
  • Date: 2008-11-28 09:29:51 UTC
  • Revision ID: jamesw@ubuntu.com-20081128092951-0y5ojboptscru17f
Tags: upstream-ubuntu-0.8.6.release.e+x264svn20071224+faad2.6.1
ImportĀ upstreamĀ versionĀ 0.8.6.release.e+x264svn20071224+faad2.6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * mux.c: muxer using ffmpeg (libavformat).
3
3
 *****************************************************************************
4
4
 * Copyright (C) 2006 the VideoLAN team
5
 
 * $Id: mux.c 16603 2006-09-10 20:40:21Z sam $
 
5
 * $Id: mux.c 23927 2007-12-29 12:17:38Z jpsaman $
6
6
 *
7
7
 * Authors: Gildas Bazin <gbazin@videolan.org>
8
8
 *
132
132
        free( p_sys );
133
133
        return VLC_EGENERIC;
134
134
    }
135
 
 
 
135
#if LIBAVFORMAT_VERSION_INT >= ((52<<16)+(0<<8)+0)
 
136
    p_sys->oc->pb = &p_sys->io;
 
137
#else
136
138
    p_sys->oc->pb = p_sys->io;
 
139
#endif
137
140
    p_sys->oc->nb_streams = 0;
138
141
 
139
142
    p_sys->b_write_header = VLC_TRUE;
348
351
    {
349
352
        msg_Dbg( p_mux, "writing header" );
350
353
 
351
 
        p_sys->b_write_header = VLC_FALSE;
352
 
 
353
354
        if( av_write_header( p_sys->oc ) < 0 )
354
355
        {
355
356
            msg_Err( p_mux, "could not write header" );
 
357
            p_sys->b_write_header = VLC_FALSE;
356
358
            p_sys->b_error = VLC_TRUE;
357
359
            return VLC_EGENERIC;
358
360
        }
 
361
#if LIBAVFORMAT_VERSION_INT >= ((52<<16)+(0<<8)+0)
 
362
        put_flush_packet( p_sys->oc->pb );
 
363
#else
 
364
         put_flush_packet( &p_sys->oc->pb );
 
365
#endif
 
366
         p_sys->b_write_header = VLC_FALSE;
359
367
    }
360
368
 
361
369
    for( ;; )