FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
ffmpeg.c File Reference

multimedia converter based on the FFmpeg libraries More...

#include "config.h"
#include <ctype.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <errno.h>
#include <limits.h>
#include <stdatomic.h>
#include <stdint.h>
#include "libavformat/avformat.h"
#include "libavdevice/avdevice.h"
#include "libswresample/swresample.h"
#include "libavutil/opt.h"
#include "libavutil/channel_layout.h"
#include "libavutil/parseutils.h"
#include "libavutil/samplefmt.h"
#include "libavutil/fifo.h"
#include "libavutil/hwcontext.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/dict.h"
#include "libavutil/display.h"
#include "libavutil/mathematics.h"
#include "libavutil/pixdesc.h"
#include "libavutil/avstring.h"
#include "libavutil/libm.h"
#include "libavutil/imgutils.h"
#include "libavutil/timestamp.h"
#include "libavutil/bprint.h"
#include "libavutil/time.h"
#include "libavutil/thread.h"
#include "libavutil/threadmessage.h"
#include "libavcodec/mathops.h"
#include "libavformat/os_support.h"
#include "libavfilter/avfilter.h"
#include "libavfilter/buffersrc.h"
#include "libavfilter/buffersink.h"
#include "ffmpeg.h"
#include "cmdutils.h"
#include "libavutil/avassert.h"

Go to the source code of this file.

Data Structures

struct  BenchmarkTimeStamps
 

Functions

static void do_video_stats (OutputStream *ost, int frame_size)
 
static BenchmarkTimeStamps get_benchmark_time_stamps (void)
 
static int64_t getmaxrss (void)
 
static int ifilter_has_all_input_formats (FilterGraph *fg)
 
static int sub2video_get_blank_frame (InputStream *ist)
 
static void sub2video_copy_rect (uint8_t *dst, int dst_linesize, int w, int h, AVSubtitleRect *r)
 
static void sub2video_push_ref (InputStream *ist, int64_t pts)
 
void sub2video_update (InputStream *ist, AVSubtitle *sub)
 
static void sub2video_heartbeat (InputStream *ist, int64_t pts)
 
static void sub2video_flush (InputStream *ist)
 
static void term_exit_sigsafe (void)
 
void term_exit (void)
 
static void sigterm_handler (int sig)
 
void term_init (void)
 
static int read_key (void)
 
static int decode_interrupt_cb (void *ctx)
 
static void ffmpeg_cleanup (int ret)
 
void remove_avoptions (AVDictionary **a, AVDictionary *b)
 
void assert_avoptions (AVDictionary *m)
 
static void abort_codec_experimental (AVCodec *c, int encoder)
 
static void update_benchmark (const char *fmt,...)
 
static void close_all_output_streams (OutputStream *ost, OSTFinished this_stream, OSTFinished others)
 
static void write_packet (OutputFile *of, AVPacket *pkt, OutputStream *ost, int unqueue)
 
static void close_output_stream (OutputStream *ost)
 
static void output_packet (OutputFile *of, AVPacket *pkt, OutputStream *ost, int eof)
 
static int check_recording_time (OutputStream *ost)
 
static void do_audio_out (OutputFile *of, OutputStream *ost, AVFrame *frame)
 
static void do_subtitle_out (OutputFile *of, OutputStream *ost, AVSubtitle *sub)
 
static void do_video_out (OutputFile *of, OutputStream *ost, AVFrame *next_picture, double sync_ipts)
 
static double psnr (double d)
 
static int init_output_stream (OutputStream *ost, char *error, int error_len)
 
static void finish_output_stream (OutputStream *ost)
 
static int reap_filters (int flush)
 Get and encode new output from any of the filtergraphs, without causing activity. More...
 
static void print_final_stats (int64_t total_size)
 
static void print_report (int is_last_report, int64_t timer_start, int64_t cur_time)
 
static void ifilter_parameters_from_codecpar (InputFilter *ifilter, AVCodecParameters *par)
 
static void flush_encoders (void)
 
static int check_output_constraints (InputStream *ist, OutputStream *ost)
 
static void do_streamcopy (InputStream *ist, OutputStream *ost, const AVPacket *pkt)
 
int guess_input_channel_layout (InputStream *ist)
 
static void check_decode_result (InputStream *ist, int *got_output, int ret)
 
static int ifilter_send_frame (InputFilter *ifilter, AVFrame *frame)
 
static int ifilter_send_eof (InputFilter *ifilter, int64_t pts)
 
static int decode (AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *pkt)
 
static int send_frame_to_filters (InputStream *ist, AVFrame *decoded_frame)
 
static int decode_audio (InputStream *ist, AVPacket *pkt, int *got_output, int *decode_failed)
 
static int decode_video (InputStream *ist, AVPacket *pkt, int *got_output, int64_t *duration_pts, int eof, int *decode_failed)
 
static int transcode_subtitles (InputStream *ist, AVPacket *pkt, int *got_output, int *decode_failed)
 
static int send_filter_eof (InputStream *ist)
 
static int process_input_packet (InputStream *ist, const AVPacket *pkt, int no_eof)
 
static void print_sdp (void)
 
static enum AVPixelFormat get_format (AVCodecContext *s, const enum AVPixelFormat *pix_fmts)
 
static int get_buffer (AVCodecContext *s, AVFrame *frame, int flags)
 
static int init_input_stream (int ist_index, char *error, int error_len)
 
static InputStreamget_input_stream (OutputStream *ost)
 
static int compare_int64 (const void *a, const void *b)
 
static int check_init_output_file (OutputFile *of, int file_index)
 
static int init_output_bsfs (OutputStream *ost)
 
static int init_output_stream_streamcopy (OutputStream *ost)
 
static void set_encoder_id (OutputFile *of, OutputStream *ost)
 
static void parse_forced_key_frames (char *kf, OutputStream *ost, AVCodecContext *avctx)
 
static void init_encoder_time_base (OutputStream *ost, AVRational default_time_base)
 
static int init_output_stream_encode (OutputStream *ost)
 
static void report_new_stream (int input_index, AVPacket *pkt)
 
static int transcode_init (void)
 
static int need_output (void)
 
static OutputStreamchoose_output (void)
 Select the output stream to process. More...
 
static void set_tty_echo (int on)
 
static int check_keyboard_interaction (int64_t cur_time)
 
static int get_input_packet (InputFile *f, AVPacket *pkt)
 
static int got_eagain (void)
 
static void reset_eagain (void)
 
static AVRational duration_max (int64_t tmp, int64_t *duration, AVRational tmp_time_base, AVRational time_base)
 
static int seek_to_start (InputFile *ifile, AVFormatContext *is)
 
static int process_input (int file_index)
 
static int transcode_from_filter (FilterGraph *graph, InputStream **best_ist)
 Perform a step of transcoding for the specified filter graph. More...
 
static int transcode_step (void)
 Run a single step of transcoding. More...
 
static int transcode (void)
 
static void log_callback_null (void *ptr, int level, const char *fmt, va_list vl)
 
int main (int argc, char **argv)
 

Variables

const char program_name [] = "ffmpeg"
 program name, defined by the program for show_version(). More...
 
const int program_birth_year = 2000
 program birth year, defined by the program for show_banner() More...
 
static FILE * vstats_file
 
const char *const forced_keyframes_const_names []
 
static int run_as_daemon = 0
 
static int nb_frames_dup = 0
 
static unsigned dup_warning = 1000
 
static int nb_frames_drop = 0
 
static int64_t decode_error_stat [2]
 
static int want_sdp = 1
 
static BenchmarkTimeStamps current_time
 
AVIOContextprogress_avio = NULL
 
static uint8_tsubtitle_out
 
InputStream ** input_streams = NULL
 
int nb_input_streams = 0
 
InputFile ** input_files = NULL
 
int nb_input_files = 0
 
OutputStream ** output_streams = NULL
 
int nb_output_streams = 0
 
OutputFile ** output_files = NULL
 
int nb_output_files = 0
 
FilterGraph ** filtergraphs
 
int nb_filtergraphs
 
static volatile int received_sigterm = 0
 
static volatile int received_nb_signals = 0
 
static atomic_int transcode_init_done = ATOMIC_VAR_INIT(0)
 
static volatile int ffmpeg_exited = 0
 
static int main_return_code = 0
 
const AVIOInterruptCB int_cb = { decode_interrupt_cb, NULL }
 

Detailed Description

multimedia converter based on the FFmpeg libraries

Definition in file ffmpeg.c.

Function Documentation

static void do_video_stats ( OutputStream ost,
int  frame_size 
)
static

Definition at line 1363 of file ffmpeg.c.

Referenced by do_video_out(), and flush_encoders().

static BenchmarkTimeStamps get_benchmark_time_stamps ( void  )
static

Definition at line 4794 of file ffmpeg.c.

Referenced by main(), and update_benchmark().

static int64_t getmaxrss ( void  )
static

Definition at line 4820 of file ffmpeg.c.

Referenced by ffmpeg_cleanup().

static int ifilter_has_all_input_formats ( FilterGraph fg)
static

Definition at line 2124 of file ffmpeg.c.

Referenced by flush_encoders(), ifilter_send_frame(), and transcode_step().

static int sub2video_get_blank_frame ( InputStream ist)
static

Definition at line 176 of file ffmpeg.c.

Referenced by sub2video_update().

static void sub2video_copy_rect ( uint8_t dst,
int  dst_linesize,
int  w,
int  h,
AVSubtitleRect r 
)
static

Definition at line 191 of file ffmpeg.c.

Referenced by sub2video_update().

static void sub2video_push_ref ( InputStream ist,
int64_t  pts 
)
static

Definition at line 222 of file ffmpeg.c.

Referenced by sub2video_heartbeat(), and sub2video_update().

void sub2video_update ( InputStream ist,
AVSubtitle sub 
)
static void sub2video_heartbeat ( InputStream ist,
int64_t  pts 
)
static

Definition at line 274 of file ffmpeg.c.

Referenced by process_input().

static void sub2video_flush ( InputStream ist)
static

Definition at line 304 of file ffmpeg.c.

Referenced by transcode_subtitles().

static void term_exit_sigsafe ( void  )
static

Definition at line 320 of file ffmpeg.c.

Referenced by sigterm_handler(), and term_exit().

void term_exit ( void  )

Definition at line 328 of file ffmpeg.c.

Referenced by assert_file_overwrite(), ffmpeg_cleanup(), and transcode().

static void sigterm_handler ( int  sig)
static

Definition at line 341 of file ffmpeg.c.

Referenced by term_init().

void term_init ( void  )

Definition at line 387 of file ffmpeg.c.

Referenced by assert_file_overwrite(), and ffmpeg_parse_options().

static int read_key ( void  )
static

Definition at line 425 of file ffmpeg.c.

Referenced by check_keyboard_interaction().

static int decode_interrupt_cb ( void ctx)
static

Definition at line 476 of file ffmpeg.c.

static void ffmpeg_cleanup ( int  ret)
static

Definition at line 483 of file ffmpeg.c.

Referenced by main().

void remove_avoptions ( AVDictionary **  a,
AVDictionary b 
)

Definition at line 636 of file ffmpeg.c.

Referenced by open_input_file().

void assert_avoptions ( AVDictionary m)

Definition at line 645 of file ffmpeg.c.

Referenced by init_input_stream(), init_output_stream(), and open_input_file().

static void abort_codec_experimental ( AVCodec c,
int  encoder 
)
static

Definition at line 654 of file ffmpeg.c.

Referenced by init_input_stream(), and init_output_stream().

static void update_benchmark ( const char *  fmt,
  ... 
)
static

Definition at line 659 of file ffmpeg.c.

Referenced by decode_audio(), decode_video(), do_audio_out(), do_video_out(), and flush_encoders().

static void close_all_output_streams ( OutputStream ost,
OSTFinished  this_stream,
OSTFinished  others 
)
static

Definition at line 680 of file ffmpeg.c.

Referenced by write_packet().

static void write_packet ( OutputFile of,
AVPacket pkt,
OutputStream ost,
int  unqueue 
)
static
static void close_output_stream ( OutputStream ost)
static

Definition at line 824 of file ffmpeg.c.

Referenced by check_recording_time(), do_streamcopy(), need_output(), and transcode_from_filter().

static void output_packet ( OutputFile of,
AVPacket pkt,
OutputStream ost,
int  eof 
)
static
Examples:
transcode_aac.c.

Definition at line 846 of file ffmpeg.c.

Referenced by do_audio_out(), do_streamcopy(), do_video_out(), encode_audio_frame(), and flush_encoders().

static int check_recording_time ( OutputStream ost)
static

Definition at line 897 of file ffmpeg.c.

Referenced by do_audio_out(), do_subtitle_out(), and do_video_out().

static void do_audio_out ( OutputFile of,
OutputStream ost,
AVFrame frame 
)
static

Definition at line 910 of file ffmpeg.c.

Referenced by reap_filters().

static void do_subtitle_out ( OutputFile of,
OutputStream ost,
AVSubtitle sub 
)
static

Definition at line 970 of file ffmpeg.c.

Referenced by transcode_subtitles().

static void do_video_out ( OutputFile of,
OutputStream ost,
AVFrame next_picture,
double  sync_ipts 
)
static

Definition at line 1053 of file ffmpeg.c.

Referenced by reap_filters().

static double psnr ( double  d)
static

Definition at line 1358 of file ffmpeg.c.

Referenced by do_video_stats(), main(), print_report(), and run_psnr().

static int init_output_stream ( OutputStream ost,
char *  error,
int  error_len 
)
static

Definition at line 3457 of file ffmpeg.c.

Referenced by flush_encoders(), reap_filters(), transcode_init(), and transcode_step().

static void finish_output_stream ( OutputStream ost)
static

Definition at line 1408 of file ffmpeg.c.

Referenced by flush_encoders(), and process_input().

static int reap_filters ( int  flush)
static

Get and encode new output from any of the filtergraphs, without causing activity.

Returns
0 for success, <0 for severe errors

Definition at line 1427 of file ffmpeg.c.

Referenced by ifilter_send_frame(), transcode_from_filter(), and transcode_step().

static void print_final_stats ( int64_t  total_size)
static

Definition at line 1533 of file ffmpeg.c.

Referenced by print_report().

static void print_report ( int  is_last_report,
int64_t  timer_start,
int64_t  cur_time 
)
static

Definition at line 1650 of file ffmpeg.c.

Referenced by transcode().

static void ifilter_parameters_from_codecpar ( InputFilter ifilter,
AVCodecParameters par 
)
static

Definition at line 1849 of file ffmpeg.c.

Referenced by flush_encoders(), and ifilter_send_eof().

static void flush_encoders ( void  )
static

Definition at line 1862 of file ffmpeg.c.

Referenced by transcode().

static int check_output_constraints ( InputStream ist,
OutputStream ost 
)
static

Definition at line 1981 of file ffmpeg.c.

Referenced by process_input_packet(), and transcode_subtitles().

static void do_streamcopy ( InputStream ist,
OutputStream ost,
const AVPacket pkt 
)
static

Definition at line 1998 of file ffmpeg.c.

Referenced by process_input_packet().

int guess_input_channel_layout ( InputStream ist)

Definition at line 2085 of file ffmpeg.c.

Referenced by add_input_streams().

static void check_decode_result ( InputStream ist,
int got_output,
int  ret 
)
static

Definition at line 2105 of file ffmpeg.c.

Referenced by decode_audio(), decode_video(), and transcode_subtitles().

static int ifilter_send_frame ( InputFilter ifilter,
AVFrame frame 
)
static

Definition at line 2135 of file ffmpeg.c.

Referenced by send_frame_to_filters().

static int ifilter_send_eof ( InputFilter ifilter,
int64_t  pts 
)
static

Definition at line 2208 of file ffmpeg.c.

Referenced by send_filter_eof().

static int decode ( AVCodecContext avctx,
AVFrame frame,
int got_frame,
AVPacket pkt 
)
static

Definition at line 2235 of file ffmpeg.c.

Referenced by decode_audio(), and decode_video().

static int send_frame_to_filters ( InputStream ist,
AVFrame decoded_frame 
)
static

Definition at line 2258 of file ffmpeg.c.

Referenced by decode_video().

static int decode_audio ( InputStream ist,
AVPacket pkt,
int got_output,
int decode_failed 
)
static

Definition at line 2284 of file ffmpeg.c.

Referenced by process_input_packet().

static int decode_video ( InputStream ist,
AVPacket pkt,
int got_output,
int64_t *  duration_pts,
int  eof,
int decode_failed 
)
static

Definition at line 2348 of file ffmpeg.c.

Referenced by process_input_packet().

static int transcode_subtitles ( InputStream ist,
AVPacket pkt,
int got_output,
int decode_failed 
)
static

Definition at line 2481 of file ffmpeg.c.

Referenced by process_input_packet().

static int send_filter_eof ( InputStream ist)
static

Definition at line 2558 of file ffmpeg.c.

Referenced by process_input_packet().

static int process_input_packet ( InputStream ist,
const AVPacket pkt,
int  no_eof 
)
static

Definition at line 2574 of file ffmpeg.c.

Referenced by process_input(), and transcode().

static void print_sdp ( void  )
static

Definition at line 2756 of file ffmpeg.c.

Referenced by check_init_output_file().

static enum AVPixelFormat get_format ( AVCodecContext s,
const enum AVPixelFormat pix_fmts 
)
static

Definition at line 2801 of file ffmpeg.c.

Referenced by init_input_stream().

static int get_buffer ( AVCodecContext s,
AVFrame frame,
int  flags 
)
static

Definition at line 2887 of file ffmpeg.c.

Referenced by init_input_stream().

static int init_input_stream ( int  ist_index,
char *  error,
int  error_len 
)
static

Definition at line 2897 of file ffmpeg.c.

Referenced by transcode_init().

static InputStream* get_input_stream ( OutputStream ost)
static
static int compare_int64 ( const void a,
const void b 
)
static

Definition at line 2969 of file ffmpeg.c.

Referenced by parse_forced_key_frames().

static int check_init_output_file ( OutputFile of,
int  file_index 
)
static

Definition at line 2975 of file ffmpeg.c.

Referenced by transcode_init().

static int init_output_bsfs ( OutputStream ost)
static

Definition at line 3021 of file ffmpeg.c.

static int init_output_stream_streamcopy ( OutputStream ost)
static

Definition at line 3057 of file ffmpeg.c.

static void set_encoder_id ( OutputFile of,
OutputStream ost 
)
static

Definition at line 3171 of file ffmpeg.c.

Referenced by init_output_stream_encode().

static void parse_forced_key_frames ( char *  kf,
OutputStream ost,
AVCodecContext avctx 
)
static

Definition at line 3212 of file ffmpeg.c.

Referenced by init_output_stream_encode().

static void init_encoder_time_base ( OutputStream ost,
AVRational  default_time_base 
)
static

Definition at line 3275 of file ffmpeg.c.

Referenced by init_output_stream_encode().

static int init_output_stream_encode ( OutputStream ost)
static

Definition at line 3299 of file ffmpeg.c.

Referenced by init_output_stream().

static void report_new_stream ( int  input_index,
AVPacket pkt 
)
static

Definition at line 3652 of file ffmpeg.c.

Referenced by process_input().

static int transcode_init ( void  )
static

Definition at line 3667 of file ffmpeg.c.

Referenced by transcode().

static int need_output ( void  )
static

Definition at line 3840 of file ffmpeg.c.

Referenced by transcode().

static OutputStream* choose_output ( void  )
static

Select the output stream to process.

Returns
selected output stream, or NULL if none available

Definition at line 3870 of file ffmpeg.c.

Referenced by transcode_step().

static void set_tty_echo ( int  on)
static

Definition at line 3895 of file ffmpeg.c.

Referenced by check_keyboard_interaction().

static int check_keyboard_interaction ( int64_t  cur_time)
static

Definition at line 3907 of file ffmpeg.c.

Referenced by transcode().

static int get_input_packet ( InputFile f,
AVPacket pkt 
)
static

Definition at line 4135 of file ffmpeg.c.

Referenced by process_input().

static int got_eagain ( void  )
static

Definition at line 4155 of file ffmpeg.c.

Referenced by transcode_step().

static void reset_eagain ( void  )
static

Definition at line 4164 of file ffmpeg.c.

Referenced by process_input(), and transcode_step().

static AVRational duration_max ( int64_t  tmp,
int64_t *  duration,
AVRational  tmp_time_base,
AVRational  time_base 
)
static

Definition at line 4174 of file ffmpeg.c.

Referenced by seek_to_start().

static int seek_to_start ( InputFile ifile,
AVFormatContext is 
)
static

Definition at line 4193 of file ffmpeg.c.

Referenced by process_input().

static int process_input ( int  file_index)
static

Definition at line 4258 of file ffmpeg.c.

Referenced by transcode_step().

static int transcode_from_filter ( FilterGraph graph,
InputStream **  best_ist 
)
static

Perform a step of transcoding for the specified filter graph.

Parameters
[in]graphfilter graph to consider
[out]best_istinput stream where a frame would allow to continue
Returns
0 for success, <0 for error

Definition at line 4532 of file ffmpeg.c.

Referenced by transcode_step().

static int transcode_step ( void  )
static

Run a single step of transcoding.

Returns
0 for success, <0 for error

Definition at line 4578 of file ffmpeg.c.

Referenced by transcode().

static int transcode ( void  )
static

Definition at line 4653 of file ffmpeg.c.

Referenced by main().

static void log_callback_null ( void ptr,
int  level,
const char *  fmt,
va_list  vl 
)
static

Definition at line 4838 of file ffmpeg.c.

Referenced by main().

int main ( int  argc,
char **  argv 
)

Definition at line 4842 of file ffmpeg.c.

Variable Documentation

const char program_name[] = "ffmpeg"

program name, defined by the program for show_version().

Definition at line 109 of file ffmpeg.c.

Referenced by main().

const int program_birth_year = 2000

program birth year, defined by the program for show_banner()

Definition at line 110 of file ffmpeg.c.

FILE* vstats_file
static

Definition at line 112 of file ffmpeg.c.

Referenced by do_video_stats(), and ffmpeg_cleanup().

const char* const forced_keyframes_const_names[]
Initial value:
= {
"n",
"n_forced",
"prev_forced_n",
"prev_forced_t",
"t",
}
#define NULL
Definition: coverity.c:32

Definition at line 114 of file ffmpeg.c.

Referenced by init_output_stream_encode().

int run_as_daemon = 0
static

Definition at line 134 of file ffmpeg.c.

Referenced by check_keyboard_interaction(), main(), and term_init().

int nb_frames_dup = 0
static

Definition at line 135 of file ffmpeg.c.

Referenced by do_video_out(), and print_report().

unsigned dup_warning = 1000
static

Definition at line 136 of file ffmpeg.c.

Referenced by do_video_out().

int nb_frames_drop = 0
static

Definition at line 137 of file ffmpeg.c.

Referenced by do_video_out(), and print_report().

int64_t decode_error_stat[2]
static

Definition at line 138 of file ffmpeg.c.

Referenced by check_decode_result(), and main().

int want_sdp = 1
static

Definition at line 140 of file ffmpeg.c.

Referenced by check_init_output_file(), and main().

BenchmarkTimeStamps current_time
static

Definition at line 142 of file ffmpeg.c.

AVIOContext* progress_avio = NULL

Definition at line 143 of file ffmpeg.c.

Referenced by opt_progress().

uint8_t* subtitle_out
static

Definition at line 145 of file ffmpeg.c.

Referenced by do_subtitle_out(), and ffmpeg_cleanup().

InputStream** input_streams = NULL
int nb_input_streams = 0
InputFile** input_files = NULL
int nb_input_files = 0
OutputStream** output_streams = NULL

Definition at line 152 of file ffmpeg.c.

Referenced by new_output_stream(), and open_output_file().

int nb_output_streams = 0
OutputFile** output_files = NULL
int nb_output_files = 0
FilterGraph** filtergraphs
int nb_filtergraphs
volatile int received_sigterm = 0
static

Definition at line 334 of file ffmpeg.c.

Referenced by ffmpeg_cleanup(), sigterm_handler(), and transcode().

volatile int received_nb_signals = 0
static

Definition at line 335 of file ffmpeg.c.

Referenced by check_keyboard_interaction(), decode_interrupt_cb(), main(), and sigterm_handler().

atomic_int transcode_init_done = ATOMIC_VAR_INIT(0)
static

Definition at line 336 of file ffmpeg.c.

Referenced by decode_interrupt_cb(), ffmpeg_cleanup(), and transcode_init().

volatile int ffmpeg_exited = 0
static

Definition at line 337 of file ffmpeg.c.

Referenced by ffmpeg_cleanup().

int main_return_code = 0
static

Definition at line 338 of file ffmpeg.c.

Referenced by main(), and write_packet().