---
 libavformat/avisynth.c | 49 ++++++++++++++++++++++++++++++++++---------------
 1 file changed, 34 insertions(+), 15 deletions(-)

diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c
index 2d2c86f..5cadbe5 100644
--- a/libavformat/avisynth.c
+++ b/libavformat/avisynth.c
@@ -115,7 +115,8 @@ static AviSynthContext *avs_ctx_list = NULL;
 
 static av_cold void avisynth_atexit_handler(void);
 
-static av_cold int avisynth_load_library(void) {
+static av_cold int avisynth_load_library(void)
+{
     avs_library = av_mallocz(sizeof(AviSynthLibrary));
     if (!avs_library)
         return AVERROR_UNKNOWN;
@@ -159,7 +160,8 @@ init_fail:
 // Note that avisynth_context_create and avisynth_context_destroy
 // do not allocate or free the actual context! That is taken care of
 // by libavformat.
-static av_cold int avisynth_context_create(AVFormatContext *s) {
+static av_cold int avisynth_context_create(AVFormatContext *s)
+{
     AviSynthContext *avs = (AviSynthContext *)s->priv_data;
     int ret;
 
@@ -187,7 +189,8 @@ static av_cold int avisynth_context_create(AVFormatContext 
*s) {
     return 0;
 }
 
-static av_cold void avisynth_context_destroy(AviSynthContext *avs) {
+static av_cold void avisynth_context_destroy(AviSynthContext *avs)
+{
     if (avs_atexit_called)
        return;
 
@@ -210,7 +213,8 @@ static av_cold void 
avisynth_context_destroy(AviSynthContext *avs) {
     }
 }
 
-static av_cold void avisynth_atexit_handler(void) {
+static av_cold void avisynth_atexit_handler(void)
+{
     AviSynthContext *avs = avs_ctx_list;
 
     while (avs) {
@@ -225,7 +229,8 @@ static av_cold void avisynth_atexit_handler(void) {
 }
 
 // Create AVStream from audio and video data.
-static int avisynth_create_stream_video(AVFormatContext *s, AVStream *st) {
+static int avisynth_create_stream_video(AVFormatContext *s, AVStream *st)
+{
     AviSynthContext *avs = s->priv_data;
     int planar = 0; // 0: packed, 1: YUV, 2: Y8
 
@@ -298,7 +303,8 @@ static int avisynth_create_stream_video(AVFormatContext *s, 
AVStream *st) {
     return 0;
 }
 
-static int avisynth_create_stream_audio(AVFormatContext *s, AVStream *st) {
+static int avisynth_create_stream_audio(AVFormatContext *s, AVStream *st)
+{
     AviSynthContext *avs = s->priv_data;
 
     st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
@@ -330,7 +336,8 @@ static int avisynth_create_stream_audio(AVFormatContext *s, 
AVStream *st) {
     return 0;
 }
 
-static int avisynth_create_stream(AVFormatContext *s) {
+static int avisynth_create_stream(AVFormatContext *s)
+{
     AviSynthContext *avs = s->priv_data;
     AVStream *st;
     int ret;
@@ -355,7 +362,8 @@ static int avisynth_create_stream(AVFormatContext *s) {
     return 0;
 }
 
-static int avisynth_open_file(AVFormatContext *s) {
+static int avisynth_open_file(AVFormatContext *s)
+{
     AviSynthContext *avs = (AviSynthContext *)s->priv_data;
     AVS_Value arg, val;
     int ret;
@@ -403,7 +411,9 @@ fail:
     return ret;
 }
 
-static void avisynth_next_stream(AVFormatContext *s, AVStream **st, AVPacket 
*pkt, int *discard) {
+static void avisynth_next_stream(AVFormatContext *s, AVStream **st,
+                                        AVPacket *pkt, int *discard)
+{
     AviSynthContext *avs = s->priv_data;
 
     pkt->stream_index = avs->curr_stream++;
@@ -419,7 +429,9 @@ static void avisynth_next_stream(AVFormatContext *s, 
AVStream **st, AVPacket *pk
 }
 
 // Copy AviSynth clip data into an AVPacket.
-static int avisynth_read_packet_video(AVFormatContext *s, AVPacket *pkt, int 
discard) {
+static int avisynth_read_packet_video(AVFormatContext *s, AVPacket *pkt,
+                                                               int discard)
+{
     AviSynthContext *avs = s->priv_data;
     AVS_VideoFrame *frame;
     unsigned char *dst_p;
@@ -502,7 +514,9 @@ static int avisynth_read_packet_video(AVFormatContext *s, 
AVPacket *pkt, int dis
     return 0;
 }
 
-static int avisynth_read_packet_audio(AVFormatContext *s, AVPacket *pkt, int 
discard) {
+static int avisynth_read_packet_audio(AVFormatContext *s, AVPacket *pkt,
+                                                               int discard)
+{
     AviSynthContext *avs = s->priv_data;
     AVRational fps, samplerate;
     int samples;
@@ -564,7 +578,8 @@ static int avisynth_read_packet_audio(AVFormatContext *s, 
AVPacket *pkt, int dis
     return 0;
 }
 
-static av_cold int avisynth_read_header(AVFormatContext *s) {
+static av_cold int avisynth_read_header(AVFormatContext *s)
+{
     int ret;
 
     // Calling library must implement a lock for thread-safe opens.
@@ -580,7 +595,8 @@ static av_cold int avisynth_read_header(AVFormatContext *s) 
{
     return 0;
 }
 
-static int avisynth_read_packet(AVFormatContext *s, AVPacket *pkt) {
+static int avisynth_read_packet(AVFormatContext *s, AVPacket *pkt)
+{
     AviSynthContext *avs = s->priv_data;
     AVStream *st;
     int discard = 0;
@@ -610,7 +626,8 @@ static int avisynth_read_packet(AVFormatContext *s, 
AVPacket *pkt) {
     }
 }
 
-static av_cold int avisynth_read_close(AVFormatContext *s) {
+static av_cold int avisynth_read_close(AVFormatContext *s)
+{
     if (avpriv_lock_avformat())
         return AVERROR_UNKNOWN;
 
@@ -619,7 +636,9 @@ static av_cold int avisynth_read_close(AVFormatContext *s) {
     return 0;
 }
 
-static int avisynth_read_seek(AVFormatContext *s, int stream_index, int64_t 
timestamp, int flags) {
+static int avisynth_read_seek(AVFormatContext *s, int stream_index,
+                                      int64_t timestamp, int flags)
+{
     AviSynthContext *avs = s->priv_data;
     AVStream *st;
     AVRational fps, samplerate;
-- 
1.8.1.2

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to