Skip to content

Commit d63a1d1

Browse files
use short name for codec and container
1 parent e06933f commit d63a1d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

0_hello_world.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ int main(int argc, const char *argv[])
5555
// now we have access to some information about our file
5656
// since we read its header we can say what format (container) it's
5757
// and some other information related to the format itself.
58-
logging("format %s, duration %lld us, bit_rate %lld", pFormatContext->iformat->long_name, pFormatContext->duration, pFormatContext->bit_rate);
58+
logging("format %s, duration %lld us, bit_rate %lld", pFormatContext->iformat->name, pFormatContext->duration, pFormatContext->bit_rate);
5959

6060
logging("finding stream info from format");
6161
// read Packets from the Format to get stream information
@@ -115,7 +115,7 @@ int main(int argc, const char *argv[])
115115
}
116116

117117
// print its name, id and bitrate
118-
logging("\tCodec %s ID %d bit_rate %lld", pLocalCodec->long_name, pLocalCodec->id, pCodecParameters->bit_rate);
118+
logging("\tCodec %s ID %d bit_rate %lld", pLocalCodec->name, pLocalCodec->id, pCodecParameters->bit_rate);
119119
}
120120
// https://ffmpeg.org/doxygen/trunk/structAVCodecContext.html
121121
AVCodecContext *pCodecContext = avcodec_alloc_context3(pCodec);

0 commit comments

Comments
 (0)