Skip to content

Commit

Permalink
ff_ffplay: delete old version info
Browse files Browse the repository at this point in the history
Signed-off-by: Xinzheng Zhang <zhangxzheng@gmail.com>
  • Loading branch information
zhenghanchao authored and xinzhengzhang committed Oct 17, 2016
1 parent 9bdfc36 commit 4724600
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 67 deletions.
7 changes: 5 additions & 2 deletions ijkmedia/ijkplayer/ff_ffplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
#include "ff_ffpipeline.h"
#include "ff_ffpipenode.h"
#include "ff_ffplay_debug.h"
#include "version.h"
#include "ijkmeta.h"
#include "ijkversion.h"
#include <stdatomic.h>
Expand Down Expand Up @@ -105,6 +104,10 @@ static AVPacket flush_pkt;
// FFP_MERGE: opt_add_vfilter
#endif

#define IJKVERSION_GET_MAJOR(x) ((x >> 16) & 0xFF)
#define IJKVERSION_GET_MINOR(x) ((x >> 8) & 0xFF)
#define IJKVERSION_GET_MICRO(x) ((x ) & 0xFF)

#if CONFIG_AVFILTER
static inline
int cmp_audio_fmts(enum AVSampleFormat fmt1, int64_t channel_count1,
Expand Down Expand Up @@ -3234,7 +3237,7 @@ const AVClass ffp_context_class = {
.child_class_next = ffp_context_child_class_next,
};

const char *ijk_version_info()
static const char *ijk_version_info()
{
return IJKPLAYER_VERSION;
}
Expand Down
11 changes: 3 additions & 8 deletions ijkmedia/ijkplayer/ijkplayer.c
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include "ijkplayer.h"
#include "ijkplayer_internal.h"
#include "version.h"
#include "ijkversion.h"

#define MP_RET_IF_FAILED(ret) \
do { \
Expand Down Expand Up @@ -90,14 +90,9 @@ void ijkmp_global_set_inject_callback(ijk_inject_callback cb)
ffp_global_set_inject_callback(cb);
}

const char *ijkmp_version_ident()
const char *ijkmp_version()
{
return LIBIJKPLAYER_IDENT;
}

unsigned int ijkmp_version_int()
{
return LIBIJKPLAYER_VERSION_INT;
return IJKPLAYER_VERSION;
}

void ijkmp_io_stat_register(void (*cb)(const char *url, int type, int bytes))
Expand Down
3 changes: 1 addition & 2 deletions ijkmedia/ijkplayer/ijkplayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@ void ijkmp_global_uninit();
void ijkmp_global_set_log_report(int use_report);
void ijkmp_global_set_log_level(int log_level); // log_level = AV_LOG_xxx
void ijkmp_global_set_inject_callback(ijk_inject_callback cb);
const char *ijkmp_version_ident();
unsigned int ijkmp_version_int();
const char *ijkmp_version();
void ijkmp_io_stat_register(void (*cb)(const char *url, int type, int bytes));
void ijkmp_io_stat_complete_register(void (*cb)(const char *url,
int64_t read_bytes, int64_t total_size,
Expand Down
55 changes: 0 additions & 55 deletions ijkmedia/ijkplayer/version.h

This file was deleted.

0 comments on commit 4724600

Please sign in to comment.