Update code to fix build error of gst-libav(gstreamer/subprojects/gst-libav) 54/285154/5
authorhj kim <backto.kim@samsung.com>
Wed, 7 Dec 2022 02:20:54 +0000 (11:20 +0900)
committerhj kim <backto.kim@samsung.com>
Thu, 8 Dec 2022 03:30:08 +0000 (12:30 +0900)
Build error occurred in "size limit video recording" feature.
This feature is supported only in Tizen.

Change-Id: I48b4fae594b48cbbd1df99a5ed38e875ed0933eb

libavcodec/Makefile
libavcodec/avcodec.h
libavcodec/codec_par.h
libavformat/Makefile
packaging/ffmpeg.spec

index 457ec58..81f2d80 100644 (file)
@@ -26,6 +26,7 @@ HEADERS = ac3_parser.h                                                  \
           videotoolbox.h                                                \
           vorbis_parser.h                                               \
           xvmc.h                                                        \
+          packet_internal.h                                             \
 
 OBJS = ac3_parser.o                                                     \
        adts_parser.o                                                    \
index 93bb51c..cb5c25b 100644 (file)
@@ -625,11 +625,6 @@ typedef struct AVCodecContext {
                             const AVFrame *src, int offset[AV_NUM_DATA_POINTERS],
                             int y, int type, int height);
 
-#ifdef TIZEN_FEATURE_LIBAV
-    int i_frame_number;
-    int stts_count;
-#endif /* TIZEN_FEATURE_LIBAV */
-
     /**
      * Callback to negotiate the pixel format. Decoding only, may be set by the
      * caller before avcodec_open2().
index 7660791..4aa4cc0 100644 (file)
@@ -210,6 +210,11 @@ typedef struct AVCodecParameters {
      * Audio only. The channel layout and number of channels.
      */
     AVChannelLayout ch_layout;
+
+#ifdef TIZEN_FEATURE_LIBAV
+    int i_frame_number;
+    int stts_count;
+#endif /* TIZEN_FEATURE_LIBAV */
 } AVCodecParameters;
 
 /**
index 005d014..a475f5e 100644 (file)
@@ -5,6 +5,8 @@ HEADERS = avformat.h                                                    \
           avio.h                                                        \
           version.h                                                     \
           version_major.h                                               \
+          os_support.h                                                  \
+          internal.h                                                    \
           movenc.h                                                      \
           movenccenc.h
 
index 316af37..e0c4ddf 100644 (file)
@@ -1,7 +1,7 @@
 Name:       ffmpeg
 Summary:    AV codec lib
 Version:    5.1.2
-Release:    0
+Release:    1
 Group:      Multimedia/Libraries
 URL:        https://ffmpeg.org/
 License:    LGPL-2.1+