changeset 32080:8c29dfec15c2

cosmetics: Break some long lines.
author diego
date Sat, 11 Sep 2010 22:13:45 +0000
parents 2e56ec7a0a7f
children 5e1318ebd2d9
files av_sub.c av_sub.h
diffstat 2 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/av_sub.c	Sat Sep 11 22:12:41 2010 +0000
+++ b/av_sub.c	Sat Sep 11 22:13:45 2010 +0000
@@ -34,7 +34,8 @@
  * Decode a subtitle packet via libavcodec.
  * \return < 0 on error, > 0 if further processing is needed
  */
-int decode_avsub(struct sh_sub *sh, uint8_t **data, int *size, double *pts, double *endpts)
+int decode_avsub(struct sh_sub *sh, uint8_t **data, int *size,
+                 double *pts, double *endpts)
 {
     AVCodecContext *ctx = sh->context;
     enum CodecID cid = CODEC_ID_NONE;
@@ -66,7 +67,8 @@
         ctx = avcodec_alloc_context();
         sub_codec = avcodec_find_decoder(cid);
         if (!ctx || !sub_codec || avcodec_open(ctx, sub_codec) < 0) {
-            mp_msg(MSGT_SUBREADER, MSGL_FATAL, "Could not open subtitle decoder\n");
+            mp_msg(MSGT_SUBREADER, MSGL_FATAL,
+                   "Could not open subtitle decoder\n");
             av_freep(&ctx);
             return -1;
         }
--- a/av_sub.h	Sat Sep 11 22:12:41 2010 +0000
+++ b/av_sub.h	Sat Sep 11 22:13:45 2010 +0000
@@ -24,6 +24,7 @@
 struct sh_sub;
 
 void reset_avsub(struct sh_sub *sh);
-int decode_avsub(struct sh_sub *sh, uint8_t **data, int *size, double *pts, double *endpts);
+int decode_avsub(struct sh_sub *sh, uint8_t **data, int *size,
+                 double *pts, double *endpts);
 
 #endif