aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-12-09 01:45:25 +0000
committerPaul B Mahol <onemda@gmail.com>2012-12-09 01:47:58 +0000
commit92f630eaf21c852fa29c3009b738737e94952bf2 (patch)
tree16812a74612c0535b811703137f2a7a7194e6ff0 /libavcodec
parent7f01247572987ba7e657c081601bba0b4855e936 (diff)
downloadffmpeg-92f630eaf21c852fa29c3009b738737e94952bf2.tar.gz
add forgotten AV_ prefix to some CODEC_IDs
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/srtdec.c2
-rw-r--r--libavcodec/srtenc.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/srtdec.c b/libavcodec/srtdec.c
index ddeabd298d..cac4b39d36 100644
--- a/libavcodec/srtdec.c
+++ b/libavcodec/srtdec.c
@@ -234,7 +234,7 @@ static int srt_decode_frame(AVCodecContext *avctx,
return avpkt->size;
while (ptr < end && *ptr) {
- if (avctx->codec->id == CODEC_ID_SRT) {
+ if (avctx->codec->id == AV_CODEC_ID_SRT) {
ptr = read_ts(ptr, &ts_start, &ts_end, &x1, &y1, &x2, &y2);
if (!ptr)
break;
diff --git a/libavcodec/srtenc.c b/libavcodec/srtenc.c
index 56f29e9f55..739645b3bf 100644
--- a/libavcodec/srtenc.c
+++ b/libavcodec/srtenc.c
@@ -204,7 +204,7 @@ static void srt_move_cb(void *priv, int x1, int y1, int x2, int y2,
{
SRTContext *s = priv;
- if (s->avctx->codec->id == CODEC_ID_SRT) {
+ if (s->avctx->codec->id == AV_CODEC_ID_SRT) {
char buffer[32];
int len = snprintf(buffer, sizeof(buffer),
" X1:%03u X2:%03u Y1:%03u Y2:%03u", x1, x2, y1, y2);
@@ -254,7 +254,7 @@ static int srt_encode_frame(AVCodecContext *avctx,
dialog = ff_ass_split_dialog(s->ass_ctx, sub->rects[i]->ass, 0, &num);
for (; dialog && num--; dialog++) {
- if (avctx->codec->id == CODEC_ID_SRT) {
+ if (avctx->codec->id == AV_CODEC_ID_SRT) {
int sh, sm, ss, sc = 10 * dialog->start;
int eh, em, es, ec = 10 * dialog->end;
sh = sc/3600000; sc -= 3600000*sh;